CS FundamentalsVery hardGATE CS

A process's working set grows from 40 to 70 pages while it holds 50 frames under local replacement, and the system has 10 free frames. What is the best response under the working-set model?

  1. A. Keep it at 50 frames and let local replacement cope with the growth
  2. B. Give it the 10 free frames, so that it reaches 60 frames
  3. C. Take frames from the other running processes until it has 70
  4. D. Swap out some process so this one gets all 70 frames

Correct answer: D. Swap out some process so this one gets all 70 frames

The working-set model says a process should run only with its whole working set resident; with 60 frames it would still thrash. If total demand exceeds memory, the OS suspends some process and gives its frames to others.

More Operating Systems questions

Exams that ask this topic