A computer has twenty physical page frames which contain pages numbered 101 through 120. Now a program accesses the pages numbered in that order, and repeats the access sequence THRICE. Which one of the following page replacement policies experiences the same number of page faults as the optimal page replacement policy for this program?
GATE CSE 2014Operating System › Memory Management & Virtual MemoryVerified
GATE CSE 2014 PYQ: A computer has twenty physical page frames which contain pages numbered 101 101 101 through 120 120 120 .…
- ALeast-recently-used
- BFirst-in-first-out
- CLast-in-first-out
- DMost-recently-usedCorrect answer
Answer
(D) Most-recently-used
Approach
Simulate optimal page replacement symbolically on the cyclic reference string and identify which practical policy makes the same eviction choices.
The reference string is cyclic, so the page most recently used is also the page whose next use is farthest away. Therefore optimal page replacement coincides with MRU, making D the correct choice.
Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.