CS FundamentalsHardTCS Digital · Infosys

Free partitions in memory order are 100, 500, 200, 300 and 600 KB. Processes of 212, 417, 112 and 426 KB arrive in that order. Which statement is correct?

  1. A. First-fit cannot place the 426 KB process, while best-fit places all four.
  2. B. Both first-fit and best-fit place all four processes.
  3. C. First-fit places all four, while best-fit cannot place the 426 KB process.
  4. D. Neither first-fit nor best-fit can place the 417 KB process.

Correct answer: A. First-fit cannot place the 426 KB process, while best-fit places all four.

First-fit: 212 -> 500 (288 left), 417 -> 600 (183 left), 112 -> 288 (176 left), and 426 finds no partition. Best-fit: 212 -> 300, 417 -> 500, 112 -> 200, 426 -> 600.

More Operating Systems questions

Exams that ask this topic