GATE / CS ARCHIVE

GATE CSE 1995 / QUESTION 1.8

Belady’s anomaly

Operating Systems · Virtual Memory & Paging · Full GATE CSE 1995 paper

GATE 1995, Q1.8 1 mark · MCQ
Report issue

Virtual Memory & Paging

Question 1.8, GATE 1995: Which replacement policy can have more page faults after increasing the frame count: OPT, LRU, FIFO, or OPT and FIFO?
Tap to enlarge
Your answer
Answer & solution

Answer: C: FIFO (no official key was published)

FIFO removes the page that has been resident longest, independent of recent use or future demand. Its resident sets with different frame counts need not be nested, so adding a frame can alter the eviction order disadvantageously. The classic string 1,2,3,4,1,2,5,1,2,3,4,5 gives nine FIFO faults with three frames and ten with four. LRU and OPT have the stack-inclusion property and do not suffer this anomaly. Therefore C is the correct policy.

Original paper, page 1