CS FundamentalsHardGATE CS (PYQ pattern)

A program loops over pages 1, 2, 3, 4, 5 six times in cyclic order (30 references) with 4 frames, initially empty. How many page faults does the MRU policy (evict the most recently used page) incur?

  1. A. 30
  2. B. 13
  3. C. 11
  4. D. 8

Correct answer: C. 11

MRU, FIFO and LRU respectively give 11, 30 and 30 faults on this string; MRU keeps four pages resident and only the remaining page keeps cycling, unlike LRU/FIFO which fault on every reference. On this cyclic string MRU even matches OPT (11).

More Operating Systems questions

Exams that ask this topic