0
0
Operating Systemsknowledge~5 mins

Page replacement algorithms (FIFO, LRU, Optimal) in Operating Systems - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the FIFO page replacement algorithm?
FIFO (First-In, First-Out) replaces the oldest page in memory first. It removes pages in the order they were loaded, like a queue.
Click to reveal answer
beginner
How does the LRU page replacement algorithm decide which page to remove?
LRU (Least Recently Used) removes the page that has not been used for the longest time. It assumes pages used recently will be used again soon.
Click to reveal answer
intermediate
What is the Optimal page replacement algorithm?
The Optimal algorithm replaces the page that will not be used for the longest time in the future. It gives the best performance but needs future knowledge.
Click to reveal answer
beginner
Which page replacement algorithm is easiest to implement but may cause more page faults?
FIFO is the easiest to implement because it only tracks the order pages arrived. However, it can cause more page faults because it ignores usage patterns.
Click to reveal answer
intermediate
Why is the Optimal page replacement algorithm not used in real systems?
Because it requires knowing the future sequence of page requests, which is impossible in real time. It is mainly used as a benchmark.
Click to reveal answer
Which page replacement algorithm removes the oldest page in memory first?
AOptimal
BFIFO
CLRU
DRandom
LRU stands for:
ALeast Frequently Used
BLast Recently Used
CLeast Recently Used
DLongest Running User
Which algorithm requires knowledge of future page requests?
AOptimal
BLRU
CClock
DFIFO
Which algorithm is easiest to implement?
AOptimal
BSecond Chance
CLRU
DFIFO
Why might FIFO cause more page faults than LRU?
ABecause it ignores how often pages are used
BBecause it removes the most recently used page
CBecause it predicts future page use
DBecause it uses a random selection
Explain how FIFO, LRU, and Optimal page replacement algorithms decide which page to remove.
Think about the order of page usage and future knowledge.
You got /3 concepts.
    Discuss the advantages and disadvantages of FIFO and LRU algorithms.
    Consider ease of implementation and fault rates.
    You got /3 concepts.