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 for optimal algorithm for the following reference string, with four frames? 1, 2, 3, 4, 5, 3, 4, 1, 6, 7, 8, 7, 8

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 faults (6); 7 (7) and 8 (8) fault, replacing pages not needed again. 7, 8 hit. Total 8 faults.

More System Software and Operating System questions