CS FundamentalsHardGATE CS

Reference string: 2, 3, 2, 1, 5, 2, 4, 5, 3, 2, 5, 2, 3 frames, initially empty. What are the fault counts for FIFO, LRU and OPT?

  1. A. 7, 9, 6
  2. B. 9, 7, 7
  3. C. 8, 7, 6
  4. D. 9, 7, 6

Correct answer: D. 9, 7, 6

Simulation gives FIFO 9, LRU 7, OPT 6. Page 2 is reused often, which LRU exploits better than FIFO.

More Operating Systems questions

Exams that ask this topic