GATE / CS ARCHIVE

GATE CSE 2016 SET 2 / QUESTION 20

GATE CSE 2016 Set 2 Q20

Operating Systems · Virtual Memory & Paging · Full GATE CSE 2016 Set 2 paper

GATE 2016 Set 2, Q20 1 mark · MCQ
Report issue

Virtual Memory & Paging

Question 20, GATE 2016: Which page-replacement policy can suffer a higher page-fault rate when more frames are allocated? A LRU; B OPT; C MRU; D FIFO.
Tap to enlarge
Your answer
Answer & solution

Official answer: D

FIFO exhibits Belady’s anomaly. For reference string 1, 2, 3, 4, 1, 2, 5, 1, 2, 3, 4, 5, FIFO produces 9 faults with 3 frames but 10 with 4. LRU and OPT obey inclusion/optimality monotonicity; MRU is also an inclusion policy under consistent recency/tie handling. Thus D.

With three FIFO frames the example’s fault positions are 1,2,3,4,5,6,7,10,11. With four they are 1,2,3,4,7,8,9,10,11,12. More capacity changes eviction order, not merely how many pages fit at one instant. The inclusion property prevents this anomaly when every smaller resident set is contained in the larger one.

Original paper, page 30 · Answer key