GATE CS 2025 Set 2 | Question 47
Operating Systems › Memory Management · MSQ · 2 marks · Answer: D
- Question 47Operating Systemsmsq2 marksA demand-paging system with three frames uses the reference string 1 2 3 4 5 4 1 6 4 5 1 3 2. The given frame-content table shows which references cause replacements (the *-marked ones). Which one or more of the following could be the page replacement policy in use?
- A.Least Recently Used page replacement policy
- B.Least Frequently Used page replacement policy
- C.Most Frequently Used page replacement policy
- D.Optimal page replacement policy✓
Answer: D
Solution
Answer: (D) Optimal page replacement policy Simulate the given string and compare the eviction choices with the table's *-marked faults. At the distinguishing replacements (e.g. the eviction made when page 6 is brought in, and later when 3 and 2 are brought in), the victim chosen is the page whose next use is farthest in the future — the hallmark of the Optimal policy. LRU, LFU and MFU each pick a different victim at one or more of these steps, producing a different frame table. Only the Optimal policy reproduces the given contents. - A.
More GATE PYQ on Memory Management
All GATE CS Operating Systems PYQ →Attempt GATE CS 2025 Set 2 in real GATE exam mode
Full paper with a timer, the GATE interface and a topic-wise analysis — free.
Create free account →