CS FundamentalsHardGATE CS (PYQ pattern)

The page reference string is 1 2 3 4 2 1 5 6 2 1 2 3 7 6 3 2 1 2 3 6 and 3 frames are available (initially empty). The numbers of page faults under FIFO, LRU and Optimal replacement are respectively:

  1. A. 16, 15, 11
  2. B. 16, 14, 11
  3. C. 15, 15, 12
  4. D. 17, 15, 10

Correct answer: A. 16, 15, 11

Simulating the string gives FIFO = 16, LRU = 15 and Optimal = 11 faults. Optimal is the lower bound, and here LRU edges out FIFO only slightly; the string is not a Belady-anomaly case.

More Operating Systems questions

Exams that ask this topic