CS FundamentalsVery hardGATE CS

Free holes, in address order, are 150, 400, 250, 600 and 300 KB. Requests for 280, 200, 350 and 290 KB arrive in that order. Which placement strategies satisfy all four requests?

  1. A. First-fit and best-fit only
  2. B. Best-fit only
  3. C. All three of first-fit, best-fit and worst-fit
  4. D. Worst-fit only

Correct answer: A. First-fit and best-fit only

First-fit uses 400, 250, 600, 300 and best-fit uses 300, 250, 400, 600: both succeed. Worst-fit puts 280 into 600 (leaving 320) and 200 into 400, so 350 finds no hole large enough.

More Operating Systems questions

Exams that ask this topic