LRU versus Optimal: past and future
Follow recency updates on hits, compare future-use choices, and count faults on the same requests. Memory · Operating systems.
A recently used page is evicted. Would remembering the past help, and what could a rule do if it knew the future?
What you will learn
- Track the LRU recency order through hits and faults
- Choose OPT victims by next use, with an explicit tie rule
- Compare LRU and OPT on the same requests, including a loop that defeats LRU
Lesson outline
- Looking back with LRU
- Looking ahead with OPT
- A loop where the past misleads
- A string where FIFO wins
- What each rule can promise
14 minutes · 4 scenes · 0 predict checks · 12 quiz questions
The full lesson is available with Premium.