GATE | GATE-CS-2007 | Question 82
A process has been allocated 3 page frames. Assume that none of the pages of the process are available in the memory initially. The process makes the following sequence of page references (reference string): 1, 2, 1, 3, 7, 4, 5, 6, 3, 1
If optimal page replacement policy is used, how many page faults occur for the above reference string?
Explanation: Optimal replacement policy looks forward in time to see which frame to replace on a page fault.
1 23 -> 1,2,3 //page faults
153 -> 5
163 -> 6
So Answer is A
Quiz of this Question
Level Up Your GATE Prep!
Embark on a transformative journey towards GATE success by choosing Data Science & AI
as your second paper choice with our specialized course. If you find yourself lost in the vast landscape of the GATE syllabus, our program is the compass you need.