DSA Factory
Free Virtual memory lessonsVirtual memory · Stage 2 · Thrashing and the working set · Step 1

Thrashing and the working set

See why a process with too few frames spends its time faulting, and how the working-set model sets the right number. About 14 minutes.

Quick check

The system is thrashing: the CPU is mostly idle and the disk is busy. What should the OS do?

  1. AReduce the degree of multiprogramming, suspending a process so the others get enough frames
  2. BAdmit more processes, to use the idle CPU
  3. CSwitch the replacement policy to FIFO
Show the answer

Reduce the degree of multiprogramming, suspending a process so the others get enough frames. The working sets of the remaining processes then fit in memory.

Lock it in

4 questions on this idea

Short questions that apply the idea to new cases: trace it, work out a number, put steps in order. A wrong answer explains itself.

Answer them in your browserFree account, no card. Your progress is saved, and the idea comes back in a quick review later.
Sign up free to solve