Tutorvo

LRU and Optimal Replacement: Last Use, Next Use, Victims and Belady's Anomaly

Lesson 7 of 815 minLab

This lesson is part of the course

In this lesson

At one page fault you find when each page in memory was last used and when it will be needed next, pick the victim for LRU and for the optimal rule, and compare the fault counts – including FIFO's strange anomaly.

Buy the course once for $9.99 to unlock every lesson and lab, the final exam and the certificate – lifetime access, no subscription.

Lessons in this course

  1. Processes & Metrics: Arrival, Burst, Turnaround, Waiting and CPU UtilisationLab15 min Locked
  2. First-Come, First-Served: Start Times, Idle Gaps, a Timeline and the Convoy EffectLab15 min Locked
  3. Shortest Job First: Ranking Bursts, Breaking Ties and Beating FCFS on Waiting TimeLab15 min Locked
  4. Priority Scheduling: Start Times with SUMIF, Starvation and a Simple Ageing RuleLab15 min Locked
  5. Round Robin: Time Quantum, Remaining Burst per Round, Context Switches and Quantum SizeLab15 min Locked
  6. Page Replacement with FIFO: Reference Strings, Frames, Hits, Faults and the Fault RateLab15 min Locked
  7. LRU and Optimal Replacement: Last Use, Next Use, Victims and Belady's AnomalyLab15 min Locked
  8. Disk Scheduling: FCFS, Shortest Seek First and the Elevator Order with Total Head MovementLab15 min Locked