CS FundamentalsHardGATE CS

Memory holes in address order: 100 KB, 500 KB, 200 KB, 300 KB, 600 KB. Requests in order: 212 KB, 417 KB, 112 KB, 426 KB (a hole that is used shrinks and stays in place). Which placement policies can satisfy ALL four requests?

  1. A. First fit and best fit
  2. B. Worst fit only
  3. C. All three
  4. D. Best fit only

Correct answer: D. Best fit only

First fit: 212→500 (288 left), 417→600, 112→288, 426 fails. Best fit: 212→300, 417→500, 112→200, 426→600, all placed. Worst fit: 212→600, 417→500, 112→388, 426 fails. Only best fit places all four.

More Operating Systems questions

Exams that ask this topic