Operating Systems · Question 18 · Easy

Operating Systems question 18

Which page-replacement algorithm gives the lowest possible number of page faults for any reference string, but cannot be implemented exactly in practice?

  1. FIFO
  2. Optimal (replace the page not needed for the longest time)
  3. LRU
  4. Second chance (clock)
Answer and explanation

Answer: B. Optimal (replace the page not needed for the longest time)

Explanation: The optimal algorithm needs to know future references, which the OS cannot know, so it serves as a benchmark for comparing practical algorithms.

Previous: Which of the following is NOT shared between threads of the same process? · Next: Belady's anomaly, where giving a process more page frames can increase its…

Practise operating systems

Try a fresh set of operating systems questions with an explanation after every answer, free and without signing up: Operating Systems practice. Or sit a full placement mock test.

More operating systems questions

More technical & programming practice

Computer Networks · Software Engineering · Cloud & DevOps · GenAI Basics · Pseudo-code · C Programming · Java · Python

LogicWiz Exams home · All practice topics · Placement mock tests · Daily 10 challenge