CS FundamentalsHardGATE CS
Belady's anomaly is observed for FIFO with reference string R. Which statement is necessarily true?
- A. LRU on R also shows the anomaly
- B. The anomaly appears for every reference string under FIFO
- C. For R, FIFO with some frame count n + 1 causes more faults than with n frames, while LRU on R never does
- D. OPT with n + 1 frames causes more faults than with n frames on R
Correct answer: C. For R, FIFO with some frame count n + 1 causes more faults than with n frames, while LRU on R never does
The anomaly is string-dependent and specific to non-stack algorithms like FIFO. LRU and OPT are stack algorithms, so their fault count never increases with more frames.
More Operating Systems questions
- A process references pages in a loop over 5 distinct pages: 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, ... with 4 frames. Which policy performs best in…
- A system uses 4 KB pages. A process's code segment is 10,000 bytes, data 7,000 bytes and stack 3,000 bytes, each segment starting on a…
- Compaction is used to remove external fragmentation. Which condition is required for compaction to be possible?
- The 50-percent rule for first-fit allocation states that, statistically, given N allocated blocks, about 0.5N blocks are lost to…
- Which allocation strategy tends to leave the LARGEST leftover holes, and which tends to produce the most tiny unusable fragments?
- A slab allocator is used inside many kernels. Which statement explains its main advantage?