CS FundamentalsVery hardGATE CS (PYQ pattern)

MFU replacement with 3 frames (initially empty): the victim is the resident page with the LARGEST reference count since it was loaded (ties: evict the page loaded earliest; counts restart when a page is reloaded). Reference string: 3, 1, 1, 5, 3, 4, 4, 5, 3, 2, 2, 3, 4, 1, 2, 5, 4, 1, 1, 1. How many page faults occur?

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

Correct answer: D. 9

MFU gives 9 faults on this string, LRU gives 11: MFU assumes the most used page is finished with, which works here because the heavily used pages stop being referenced.

More Operating Systems questions

Exams that ask this topic