CS FundamentalsVery hardGATE CS

Reference string: 1, 2, 1, 3, 1, 2, 4, 5, 4, 2, 5, 3, 4, 2, 3 frames, initially empty. LFU replacement is used: the victim is the resident page with the smallest reference count, counts are kept only while a page is resident (reset to 1 when it is loaded again), and ties go to the page loaded earliest. How many faults occur?

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

Correct answer: B. 9

Simulating with per-residency counts and FIFO tie-breaking gives 9 faults; LRU gives 8 and OPT 6 on the same string.

More Operating Systems questions

Exams that ask this topic