Recall & Review
beginner
What is thrashing in an operating system?
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?
✗ 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?
✗ 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?
✗ Incorrect
Thrashing occurs when memory is overloaded by many programs, causing excessive paging.
How does the working set model help the operating system?
✗ 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?
✗ 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.