0
0
Operating Systemsknowledge~5 mins

Thrashing and working set model in Operating Systems - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
ANormal memory usage
BExcessive paging causing slow performance
CA type of virus attack
DCPU overheating
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
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
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
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
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.