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?
- A. 10
- B. 3
- C. 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
- A disk (tracks 0–199) has the head at 111 and pending requests [34, 176, 127, 129, 120, 171, 96, 8]. What is the total head movement under…
- Processes (arrival, burst) in ms: P1 (arrival 0, burst 6), P2 (arrival 1, burst 8), P3 (arrival 2, burst 7), P4 (arrival 3, burst 3). They…
- Processes (arrival, burst) in ms: P1 (arrival 0, burst 6), P2 (arrival 1, burst 8), P3 (arrival 2, burst 7), P4 (arrival 3, burst 3)…
- Processes (arrival, burst, priority — a smaller number means higher priority): P1 (arrival 0, burst 6, priority 4), P2 (arrival 1, burst…
- Processes (arrival, burst) in ms: P1 (arrival 0, burst 6), P2 (arrival 1, burst 8), P3 (arrival 2, burst 7), P4 (arrival 3, burst 3). They…
- Processes (arrival, burst) in ms: P1 (arrival 0, burst 6), P2 (arrival 1, burst 8), P3 (arrival 2, burst 7), P4 (arrival 3, burst 3)…