CS FundamentalsVery hardGATE CS

Reference string: 7, 2, 3, 1, 2, 5, 3, 4, 6, 7, 7, 1, 0, 5, 4, 6, 2, 3, 0, 1. With 3 frames (initially empty), what are the page-fault counts for FIFO, LRU and OPT respectively?

  1. A. 17, 18, 13
  2. B. 17, 19, 13
  3. C. 18, 17, 13
  4. D. 17, 18, 14

Correct answer: A. 17, 18, 13

Simulating each policy carefully gives FIFO 17, LRU 18, OPT 13. OPT is a lower bound for any algorithm on the same string and frame count.

More Operating Systems questions

Exams that ask this topic