375 views
0 votes
0 votes

Only "Second chance" is mentioned then how can I know whether it is "FIFO 2nd chance" or "LRU 2nd chance" algorithm ?

1 Answer

Best answer
2 votes
2 votes

The second Chance algorithm is generally a modified version of FIFO. It works just like FIFO, with a slight difference. Instead of swapping out at first go, we look for the status of referenced/use bit. 

  • If the reference bit is set - > clear the bit but do not swap out the page.
  • If the reference bit isn't set - > swap that page with the new page.
  • This swapping happens just like the FIFO method. So Belady's Anomaly can also happen here.
selected by

Related questions

0 votes
0 votes
0 answers
1
Jyoti Kumari97 asked Jan 15, 2019
529 views
Assume there are 5 frames and consider the following reference string find the number of page faults using NRU page replacement algorithm.3,2,3, 0,8,4,2,5,0,9,8,3,2
0 votes
0 votes
0 answers
2
Mayankprakash asked Dec 24, 2018
371 views
Do we need to cover page replacement implementations for gate?Please suggest
1 votes
1 votes
2 answers
3
muthu kumar asked Dec 15, 2018
501 views
How the value is 36? im getting 39.