Compare the FIFO, LRU, and Optimal page-replacement algorithms. Why is Optimal impossible to implement in practice?
Last updated
FIFO evicts the oldest-loaded page. It is simple but can evict hot pages and suffers Belady's anomaly (more frames can cause more faults).
LRU (Least Recently Used) evicts the page unused longest. It gives good hit rates with no Belady's anomaly, but exact tracking is costly, so it is usually approximated.
Optimal evicts the page used farthest in the future, giving the minimum possible faults. It needs the full future reference string, so it is only computable offline as a benchmark.
- https://www.tutorialspoint.com/operating_system/os_page_replacement_algorithms.htm
- https://www.geeksforgeeks.org/operating-systems/difference-between-lru-and-fifo-page-replacement-algorithms-in-operating-system/
- https://parashar--manas.medium.com/understanding-operating-system-page-replacement-algorithms-part-63-first-in-first-out-fifo-a6f99f76a7ad
- https://www.geeksforgeeks.org/operating-systems/advantages-and-disadvantages-of-various-page-replacement-algorithms/
- https://www.knowledgegate.ai/blog/operating-systems-page-replacement-algorithms-mcqs
- https://parashar--manas.medium.com/understanding-operating-system-page-replacement-algorithms-part-62-page-replacement-algorithms-d01a309f70f4
- https://intellipaat.com/blog/page-replacement-algorithms-in-os/
- https://parashar--manas.medium.com/understanding-operating-system-page-replacement-algorithms-part-64-optimal-page-replacement-7fed8894ae84