How does the Clock (Second-Chance) page-replacement algorithm approximate LRU?

Last updated 5 July 2026

  • Clock keeps frames in a circular list with a moving hand, and hardware sets each page's reference bit on access.

  • On a fault, a page with bit 0 is evicted. A page with bit 1 has its bit cleared (a second chance) and the hand advances.

  • It approximates LRU coarsely (recently used vs not) using only one bit and no per-access bookkeeping. The enhanced version also prefers clean pages.

  • https://pages.cs.wisc.edu/~bart/537/lecturenotes/s20.html
  • https://www.geeksforgeeks.org/dbms/what-is-buffer-management-in-dbms/
  • https://mostafaelsawy.hashnode.dev/understanding-swap-space-and-page-replacement-policies
  • https://www.geeksforgeeks.org/operating-systems/second-chance-or-clock-page-replacement-policy/
  • https://www.tutorialspoint.com/article/lru-approximation-second-chance-algorithm
All Operating Systems interview questions