StreakPeaked· Practice

ExamsGATETechnical

A system uses FIFO policy for page replacement. It has 4 page frames with no pages loaded to begin with. The system first accesses 100 distinct pages in some order and then accesses the same 100 pages but now in the reverse order. How many page faults will occur?

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

Correct answer: 196

Solution

In a FIFO page replacement policy with 4 frames, the first 4 distinct pages accessed will cause page faults, totaling 4. As the system accesses the next 96 distinct pages, each will also cause a page fault until the frames are filled. When accessing the same pages in reverse order, the first 4 will cause faults again, leading to a total of 196 page faults.

Related GATE Technical questions

⚔️ Practice GATE Technical free + battle 1v1 →