written 8.7 years ago by | • modified 8.7 years ago |
Mumbai University > COMPS > Sem 5 > Operating System
Marks: 10 M
Year: May 2015
written 8.7 years ago by | • modified 8.7 years ago |
Mumbai University > COMPS > Sem 5 > Operating System
Marks: 10 M
Year: May 2015
written 8.7 years ago by |
FIFO page replacement:
In FIFO page replacement, when a page is needed to be replaced, we select the oldest page.
Page hit: If the file is already present, then it is a Page Hit (indicated by circles in the diagram)
Page Miss: If an entry is not found, then it is a Page miss
No. of page hit=4
No. of page miss=9
Optimal Page replacement:
Here, when a page replacement is needed, it looks ahead in the input queue for the page frame which will be referenced only after a long time. The page with the longest reference is swapped.
No. of page hit=6
No. of page miss=7
LRU page replacement:
This method uses the recent past as an approximation of near future. We replace the page which has not been referenced for a long time in the past.
No. of page hit=4
No. of page miss=9