Concept Flow - Page replacement algorithms (FIFO, LRU, Optimal)
Page Request
Is page in memory?
Yes→Use page, no replacement
No
Is free frame available?
Yes→Load page into free frame
No
Select page to replace
FIFO: Replace oldest page
LRU: Replace least recently used page
Optimal: Replace page not used for longest future time
Replace page
Continue processing next page request
When a page is requested, if it's not in memory and no free frame exists, the algorithm selects a page to replace based on FIFO, LRU, or Optimal strategy.