CS FundamentalsHardGATE CS · TCS Digital

The reference string 1, 2, 3, 4, 1, 2, 5, 1, 2, 3, 4, 5 is run under FIFO replacement first with 3 frames and then with 4 frames (all initially empty). What are the numbers of page faults, in that order?

  1. A. 10 and 9
  2. B. 9 and 10
  3. C. 9 and 9
  4. D. 9 and 8

Correct answer: B. 9 and 10

FIFO gives 9 faults with 3 frames and 10 with 4 frames - Belady's anomaly, where more frames produce more faults.

More Operating Systems questions

Exams that ask this topic