Question 1Easy
Which algorithm is simplest to implement, needing only a queue of pages in load order?
- Optimal
- LRU
- FIFO
- Working-set
Answer: C. FIFO
Explanation
FIFO only tracks load order with a queue: the page at the head is replaced.
Step-by-step solution
- FIFO only needs a queue of pages in load order.
- Optimal needs future knowledge; LRU needs last-use tracking; working-set needs a window of recent references.
- So FIFO is the simplest, which is option C.
Why the other options are wrong
- A. Optimal needs future knowledge of references, so it is not simple to build.
- B. LRU needs last-use tracking, which is more than a simple queue.
- D. The working-set method needs tracking of recent references in a window.
Tip: FIFO is simple because load order never changes; LRU must update order on every hit.