All mock tests are FREE till 31 December — register to save your progress
Unit 5 · System Software and Operating System Paper 2 CS · December 2022 Shift 1

How many page faults occur with the optimal algorithm for the reference string 1, 2, 3, 4, 5, 3, 4, 1, 6, 7, 8, 7, 8 with four frames?

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

Show answer & explanation

Correct answer: A. 8

Explanation

1, 2, 3, 4 fault (4). 5 replaces 2 (never used again) (5). 3, 4, 1 hit. 6, 7 and 8 each fault, replacing pages not used again (8). 7, 8 hit. Total 8.

More System Software and Operating System questions