CS FundamentalsHardGATE CS

How many page faults occur under the Optimal replacement policy with 3 frames (initially empty) for the reference string 7, 0, 1, 2, 0, 3, 0, 4, 2, 3, 0, 3, 2, 1, 2, 0, 1, 7, 0, 1?

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

Correct answer: B. 9

Optimal evicts the page whose next use is farthest in the future; simulating gives 9 faults (for LRU the same string gives 12).

More Operating Systems questions

Exams that ask this topic