Page Replacement Algorithms
Page Replacement Algorithms
• It's like a queue: the first page to arrive is the first one to leave.
Steps:
1. Start with an empty memory (frames).
2. Page Found: If the page is already in memory, update its arrival time.
2. If memory is full, find and replace the least recently used page.
5. Display Frames: Prints the current state of memory after each reference.
2. WAP in C to implement the Least Recently Used (LRU) Page Replacement
Algorithm.