CS FundamentalsEasyWipro · Cognizant pattern
Which page-replacement algorithm can show Belady's anomaly (more frames giving more page faults)?
- A. FIFO
- B. LRU
- C. LFU implemented as a stack algorithm
- D. Optimal (OPT)
Correct answer: A. FIFO
FIFO is not a stack algorithm, so the set of pages held with n frames is not always a subset of those held with n + 1 frames; that is what allows the anomaly. OPT and LRU are stack algorithms and never show it.
More Operating Systems questions
- The disk-scheduling algorithm in which the head sweeps to one end of the disk servicing requests and then reverses direction, like a lift…
- Processes: P1 (arrival 0, burst 7), P2 (arrival 2, burst 4), P3 (arrival 4, burst 1), P4 (arrival 5, burst 4) (times in ms). Under FCFS…
- Which of the following is NOT one of the four necessary (Coffman) conditions for deadlock?
- How many times is "hi" printed? (Assume every fork() succeeds.) c int main() { for (int i = 0; i < 3; i++) fork(); printf("hin"); return…
- A system has 32-bit logical addresses, a page size of 4 KB and 4-byte page-table entries. What is the size of a single-level page table…
- Four processes share a pool of identical resource instances, and each process needs at most 3 instances to finish. What is the minimum…