Thrashing happens when a computer spends most of its time swapping data between memory and disk instead of doing useful work. This slows down the system a lot.
Click to reveal answer
beginner
What causes thrashing?
Thrashing is caused when there is not enough physical memory (RAM) for all running programs, so the system keeps moving data in and out of memory too often.
Click to reveal answer
intermediate
What is the working set model?
The working set model tracks the set of pages a program needs to run efficiently. It helps the system decide how much memory to give each program to avoid thrashing.
Click to reveal answer
intermediate
How does the working set model help prevent thrashing?
By keeping enough pages in memory that a program uses frequently, the working set model reduces the need for constant swapping, which helps prevent thrashing.
Click to reveal answer
intermediate
What happens if the total working sets of all programs exceed the available memory?
If all programs together need more memory than available, the system may start thrashing because it cannot keep all working sets in memory at once.
Click to reveal answer
What is thrashing in an operating system?
ANormal memory usage
BExcessive paging causing slow performance
CA type of virus attack
DCPU overheating
✗ Incorrect
Thrashing means the system is spending too much time swapping pages in and out of memory, which slows down performance.
What does the working set model track?
AThe set of pages a program needs to run efficiently
BThe total CPU usage
CThe number of running processes
DThe size of the hard disk
✗ Incorrect
The working set model tracks the pages a program uses frequently to keep them in memory and avoid thrashing.
Which situation is most likely to cause thrashing?
ARunning only one program
BHaving a fast CPU
CUsing a large hard drive
DToo many programs running with insufficient memory
✗ Incorrect
Thrashing occurs when memory is overloaded by many programs, causing excessive paging.
How does the working set model help the operating system?
ABy increasing CPU speed
BBy deleting unused files
CBy allocating enough memory to programs to keep their working set
DBy shutting down programs automatically
✗ Incorrect
The working set model helps allocate memory so programs have the pages they need, reducing thrashing.
What is a sign that thrashing is happening?
ASystem becomes very slow and spends most time swapping
BScreen brightness increases
CInternet speed improves
DPrograms open faster
✗ Incorrect
Thrashing causes the system to slow down because it is busy swapping pages instead of running programs.
Explain thrashing and why it happens in simple terms.
Think about what happens when your computer runs out of memory.
You got /3 concepts.
Describe the working set model and how it helps prevent thrashing.
Consider how the system decides what memory to keep for each program.
You got /3 concepts.
Practice
(1/5)
1. What is thrashing in operating systems?
easy
A. A system running multiple programs efficiently
B. A process running without any memory
C. A method to speed up CPU processing
D. Excessive paging causing slow system performance
Solution
Step 1: Understand the meaning of thrashing
Thrashing happens when the system spends too much time swapping pages in and out of memory instead of executing processes.
Step 2: Identify the effect of thrashing
This excessive paging slows down the computer significantly, reducing performance.
Final Answer:
Excessive paging causing slow system performance -> Option D
Quick Check:
Thrashing = Excessive paging slowing system [OK]
Hint: Thrashing means too much swapping slows the computer [OK]
Common Mistakes:
Confusing thrashing with normal multitasking
Thinking thrashing speeds up the CPU
Believing thrashing means no memory usage
2. Which of the following best describes the working set of a process?
easy
A. Pages never accessed by the process
B. All pages in the system memory
C. Pages recently used by the process
D. Pages swapped out to disk
Solution
Step 1: Define working set
The working set is the collection of pages a process has used recently and needs to run efficiently.
Step 2: Identify correct description
Pages recently used by the process fit this definition, unlike all pages or swapped pages.
Final Answer:
Pages recently used by the process -> Option C
Quick Check:
Working set = Recently used pages [OK]
Hint: Working set means pages used recently by process [OK]
Common Mistakes:
Thinking working set includes all system pages
Confusing working set with swapped out pages
Assuming working set is pages never accessed
3. Consider a system where a process's working set size suddenly grows beyond available memory. What is the most likely outcome?
medium
A. Thrashing will occur, slowing down the system
B. The process will run faster due to more pages
C. The system will ignore the extra pages
D. The process will terminate immediately
Solution
Step 1: Analyze working set growth impact
If the working set grows beyond available memory, the system must swap pages frequently to keep up.
Step 2: Identify system behavior
This frequent swapping causes thrashing, which slows down the system instead of speeding it up.
Final Answer:
Thrashing will occur, slowing down the system -> Option A
Quick Check:
Working set too big = Thrashing slows system [OK]
Hint: Too big working set causes thrashing and slowdown [OK]
Common Mistakes:
Assuming more pages always improve speed
Believing system ignores memory limits
Thinking process ends immediately without warning
4. A system is experiencing thrashing. Which change would best reduce thrashing?
medium
A. Increase the working set size of all processes
B. Reduce the number of processes competing for memory
C. Decrease the CPU speed
D. Disable paging completely
Solution
Step 1: Understand cause of thrashing
Thrashing happens when too many processes compete for limited memory, causing excessive paging.
Step 2: Identify best solution
Reducing the number of processes competing for memory lowers paging demand and reduces thrashing.
Final Answer:
Reduce the number of processes competing for memory -> Option B
5. A system uses the working set model to manage memory. If a process's working set is 100 pages but only 80 pages fit in memory, what should the system do to avoid thrashing?
hard
A. Swap out some pages from the process's working set
B. Increase the process's working set size to 120 pages
C. Allow the process to run with only 80 pages and swap frequently
D. Terminate the process immediately
Solution
Step 1: Analyze working set vs memory size
The process needs 100 pages to run well, but only 80 pages fit in memory, causing potential thrashing.
Step 2: Determine best memory management action
Swapping out some pages from the working set or adjusting memory allocation helps keep the working set within limits and avoids thrashing.
Final Answer:
Swap out some pages from the process's working set -> Option A
Quick Check:
Adjust working set to fit memory to avoid thrashing [OK]
Hint: Adjust working set size to fit memory to prevent thrashing [OK]
Common Mistakes:
Increasing working set size worsens thrashing
Allowing frequent swaps causes thrashing
Terminating process is last resort, not first
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.