FIFO-First In First Out:


In an operating system, memory management is a crucial topic. It provides ways to dynamically control and coordinate computer memory. Memory management allows allocating a portion of memory when requested by a program. It also automatically deallocates memory from a program when it is no longer used by a program.


There are various techniques used in memory management. One such method is paging. In paging, page replacement algorithms play an important role and decide which page to keep in the main memory when a new page comes in.



Example:

Consider page reference string 1, 3, 0, 3, 5, 6 with 3 page frames.Find number of page faults.


Advantage:


Disadvantage: