Clock and second chance
Approximate LRU with one reference bit. A clock hand skips recently used pages and evicts the first page it finds unused. Virtual memory depth · Operating systems.
Exact LRU needs a record of every memory access. What if the hardware kept one bit per page, and a hand swept around the frames looking for a page that bit says was not used?
What you will learn
- Decide what the hand does at a page with bit 1 and at a page with bit 0
- Trace a miss, a hit and a full circle, and explain why one bit cannot reproduce LRU
- Show that the hand's start position, and not only the bits, decides the victim
Lesson outline
- The hand and the bit
- When every bit is 1
- The cost of one bit
12 minutes · 3 scenes · 0 predict checks · 11 quiz questions
The full lesson is available with Premium.