CS FundamentalsHardGATE

Reference string: 3, 8, 2, 8, 9, 3, 2, 9, 3, 8, 2, 9, 8. With 4 frames, initially empty, how many page faults do FIFO, LRU and Optimal (Belady's MIN) replacement cause, respectively?

  1. A. FIFO 4, LRU 4, Optimal 5
  2. B. FIFO 4, LRU 4, Optimal 4
  3. C. FIFO 5, LRU 4, Optimal 4
  4. D. FIFO 4, LRU 5, Optimal 4

Correct answer: B. FIFO 4, LRU 4, Optimal 4

Simulating each policy frame-by-frame on this string with 4 frames gives FIFO 4 faults, LRU 4 faults and Optimal 4 faults; Optimal is always the lower bound since it evicts the page used farthest in the future.

More Operating Systems questions

Exams that ask this topic