Questions: Page Replacement Algorithms

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

A system using FIFO page replacement with 3 frames produces 10 page faults on a particular reference string. When frames are increased to 4, the same string produces 12 page faults. What does this demonstrate?

AThe reference string was adversarially constructed — this would not happen with real workloads
BBelady's Anomaly: FIFO can produce more page faults with more physical frames for certain reference strings
CThe system has a bug — more frames should always reduce or maintain page faults
DLRU would show the same behavior since it is also affected by the number of frames
Question 2 Multiple Choice

Why is exact LRU not directly implemented in most real operating systems, despite being a strong approximation of the optimal algorithm?

ALRU requires future knowledge of access patterns, just like OPT
BTracking the exact recency order of all pages requires updating a timestamp or sorted structure on every memory access, which is prohibitively expensive in hardware
CLRU performs worse than FIFO on most real workloads
DLRU requires pages to be sorted by access frequency, not recency
Question 3 True / False

The Optimal (OPT) page replacement algorithm cannot be implemented in a real operating system.

TTrue
FFalse
Question 4 True / False

LRU page replacement can also exhibit Belady's Anomaly — adding more frames can increase page faults — just like FIFO.

TTrue
FFalse
Question 5 Short Answer

Explain why the Clock (Second-Chance) algorithm uses a reference bit per page rather than tracking exact access times, and how it approximates LRU.

Think about your answer, then reveal below.