Question: how does lru page replacement work?
Answer: In the Least Recently Used (LRU) page replacement policy, the page that is used least recently will be replaced. ... Add a register to every page frame - contain the last time that the page in that frame was accessed. Use a "logical clock" that advance by 1 tick each time a memory reference is made.