CS FundamentalsHardGATE CS

Reference string: 3, 2, 1, 0, 3, 2, 4, 3, 2, 1, 0, 4. How many page faults does FIFO produce with 3 frames and with 4 frames (both initially empty)?

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

Correct answer: B. 9 and 10

FIFO gives 9 faults with 3 frames and 10 with 4: more frames, more faults. This is Belady's anomaly, possible because FIFO is not a stack algorithm. LRU gives 10 and 8.

More Operating Systems questions

Exams that ask this topic