The GATE Grind

GATE 2010 CS (CS1) – Question 34

Operating System · Memory Management and Virtual Memory · 1 mark · Multiple choice

FIFO page replacement has four initially empty frames. Access one hundred distinct pages in order, then the same pages in reverse. How many faults occur?

  1. 196
  2. 192
  3. 197
  4. 195

Practise this question in The GATE Grind →

Show answer and explanation

Correct answer: (A) 196

Explanation

The forward pass faults on all one hundred pages and leaves pages 97–100 resident. The reverse pass first hits those four, then faults on every remaining page 96 down to one, adding ninety-six. Total 100+96=196, A.

More Memory Management and Virtual Memory questions

All Memory Management and Virtual Memory questions →