CS FundamentalsHardGATE CS · Product Company SDE

A process has 4 frames, initially empty, and references pages 2 6 2 4 1 2 2 1 4 1 2 4 3 1 2. How many page faults occur under OPT replacement?

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

Correct answer: D. 5

Trace the frames: FIFO 6, LRU 5, OPT 5. OPT = 5 (every first reference counts as a fault; OPT ≤ LRU/FIFO always).

More Operating Systems questions

Exams that ask this topic