CS FundamentalsModerateWipro · Cognizant pattern
Belady's anomaly refers to the surprising fact that:
- A. LRU can sometimes perform worse than FIFO on the same reference string
- B. Increasing the number of page frames can, under FIFO replacement, increase the number of page faults for some reference strings
- C. Optimal replacement sometimes needs more page faults than FIFO
- D. Segmentation causes more faults than paging for the same program
Correct answer: B. Increasing the number of page frames can, under FIFO replacement, increase the number of page faults for some reference strings
Belady's anomaly is specific to algorithms (like FIFO) that are not 'stack algorithms': for certain reference strings, giving FIFO more frames can paradoxically cause more faults, not fewer. LRU and Optimal are stack algorithms and are immune to this anomaly.
More Operating Systems questions
- The convoy effect in FCFS scheduling describes a situation where:
- In preemptive SRTF, a running process can be interrupted the instant a newly arrived process has a strictly smaller remaining burst. Why…
- Which statement about multilevel feedback queue (MLFQ) scheduling is correct?
- A disk has an average seek time of 4 ms, rotational latency (average) of 3 ms, and a transfer rate that takes 1 ms per 4 KB block. What is…
- A disk rotates at 6000 RPM. What is the average rotational latency (time for half a rotation)?
- C-SCAN (Circular SCAN) differs from plain SCAN in which way?