Page Replacement Algo
Page Replacement Algo
Page Replacement Algo
Paging
Segmentation
Paging
Paging is a process of reading data from, and writing data to, the
secondary storage. It is a memory management scheme that is
used to retrieve processes from the secondary memory in the form
of pages and store them in the primary memory. The main
objective of paging is to divide each process in the form of pages of
fixed size.
Advantages
Disadvantages
Poor performance.
Doesn’t consider the frequency of use or last used time,
simply replaces the oldest page.
Suffers from Belady’s Anomaly(i.e. more page faults when we
increase the number of page frames).
Efficient.
Doesn't suffer from Belady’s Anomaly.
Disadvantages
Complex Implementation.
Expensive.
Requires hardware support.
In this algorithm, pages are replaced which would not be used for
the longest duration of time in the future, i.e., the pages in the
memory which are going to be referred farthest in the future are
replaced.
Advantages
Easy to Implement.
Simple data structures are used.
Highly efficient.
Disadvantages