04 OS - Virtual Memory
04 OS - Virtual Memory
• O
ldest page in main memory is the one
which will be selected for replacement.
• E
asy to implement, keep a list, replace pages
from the tail and add new pages at the head.
Least Recently Used (LRU)
Algorithm
• P
age which has not been used for the
longest time in main memory is the one
which will be selected for replacement.
• E
asy to implement, keep a list, replace pages
by looking back into time.
Least Recently Used (LRU)
Algorithm
• T
he page with the smallest count is the one
which will be selected for replacement.
•
Replaces the page that is used least often