How many page faults will occur if Optimal Page replacement algorithm is used for the following reference string with three page frames? 7, 0, 1, 2, 0, 3, 0, 4, 2, 3, 0, 3, 2, 1, 2, 0, 1, 7, 0, 1

How many page faults will occur if Optimal Page replacement algorithm is used for the following reference string with three page frames? 7, 0, 1, 2, 0, 3, 0, 4, 2, 3, 0, 3, 2, 1, 2, 0, 1, 7, 0, 1 Correct Answer 9

Optimal Page replacement:
In this algorithm, pages are replaced which would not be used for the longest duration of time in the future.

7, 0, 1, 2, 0, 3, 0, 4, 2, 3, 0, 3, 2, 1, 2, 0, 1, 7, 0, 1

No. of hits = 11
No. of misses = 9

[ alt="F1 Harshita 09-2-22 Madhuri D3" src="//storage.googleapis.com/tb-img/production/22/02/F1__Harshita_09-2-22_Madhuri_D3.png" style="height: 116px; width: 629px;">

Related Questions