CS FundamentalsHardGATE CS · Advanced

With 3 initially empty frames, the reference string 1 1 1 3 2 6 6 3 3 5 2 5 1 5 6 2 4 6 4 6 5 3 is processed under LRU and under the optimal (Belady OPT) policy. By how many does the number of page faults under LRU exceed that under OPT?

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

Correct answer: A. 3

Count LRU faults (12) and OPT faults (9, evicting the page used farthest in the future); the gap is 3. FIFO would give 11 faults on this string.

More Operating Systems questions

Exams that ask this topic