CS FundamentalsHardGATE CS

Reference string: 1, 3, 5, 4, 2, 4, 3, 2, 1, 0, 5, 3, 5, 0, 4, 3. With 3 frames (initially empty), how many page faults does LRU produce?

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

Correct answer: A. 12

Track the least recently used page at each fault; LRU gives 12 faults. On this string FIFO actually does better (11), OPT gives 9, and 4-frame LRU gives 10.

More Operating Systems questions

Exams that ask this topic