second chance algorithmwhen the page is chosen


Second chance Algorithm

When the page is chosen the reference bit is checked to see whether it has been referenced before. If that is the case after that it is given a second chance. The page is moved from head to tail as well as its reference bit is made 0. If it has not been referenced then it is removed.

Example Consider 1,2,3,4,3,5,6. Now 1,2,3 are entered into memory as well as when 4 comes 1 is removed, when 5 comes 2 is removed, when 6 comes 4 is removed instead of 3 as 3 has been referenced in among.

 

Request for Solution File

Ask an Expert for Answer!!
Operating System: second chance algorithmwhen the page is chosen
Reference No:- TGS0308176

Expected delivery within 24 Hours