CS FundamentalsVery hardIBM · Deloitte pattern

Reference string: 8, 2, 9, 2, 4, 8, 9, 4, 2, 8, 4, 9, 2. With 4 frames, initially empty, how many page faults does LRU replacement cause?

  1. A. 3
  2. B. 6
  3. C. 4
  4. D. 5

Correct answer: C. 4

Walking the string with 4 frames under LRU (evict the least recently used page) gives 4 faults. FIFO on the same string gives 4, and Optimal gives 4 as the guaranteed minimum.

More Operating Systems questions

Exams that ask this topic