All mock tests are FREE till 31 December — register to save your progress

A machine has 3 page frames and 5 virtual pages. The reference string is A, B, C, D, A, B, E, A, B, C, D, E, B, A, B. If P and Q are the page faults with FIFO and LRU respectively, then (P, Q) =

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: D. (11, 12)

Explanation

Simulating with 3 frames, FIFO hits only on A, B (after E), E and the final B: 11 faults. LRU hits only on A, B after E and the last B: 12 faults.

More System Software and Operating System questions