Consider a main memory with 3 page frames in the following sequence of page reference 3, 4, 2, 3, 9, 1, 6, 3, 4, 9. What is the number of page fault using FIFO page replacement algorithm?

Consider a main memory with 3 page frames in the following sequence of page reference 3, 4, 2, 3, 9, 1, 6, 3, 4, 9. What is the number of page fault using FIFO page replacement algorithm? Correct Answer 9

Key PointsFIFO (First In First Out):

Concept:

Replace the page that has been brought into memory first Or the Page that has been in memory the longest is replaced.

  • Treats page frames allocated to a process as a circular buffer.
  • Pages are removed in round-robin style.
  • It is the simplest replacement policy to implement.
  • These (replaced) pages may be needed again very soon.

Page size = 3

3 3 3 3 9 9 9 3 3 3
  4 4 4 4 1 1 1 4 4
    2 2 2 2 6 6 6 9
M M M H M M M M M M

 

Number of page faults or miss = 9

Hence the correct answer is 9.

Related Questions