[cs33211] OS Project question
Mikhail Nesterenko
mikhail at cs.kent.edu
Wed Nov 7 00:37:55 EST 2012
> The question, if I understand correctly, is asking whether the Reference
> bit is set to 0 or 1 when the Second-Chance algorithm replaces an old page
> with a new page. You answered the bit is set to zero. However, in your
> slide discussing the Second-Chance algorithm....
>
> "if the R bit for the page is clear, replace that page and *set the bit*."
>
> ....meaning, if the R bit for the page is zero, replace that page and "set
> the bit" to 1. Is this not correct?
I'll check my slides, but second-chance works as follows: the page is
brought in from the backing store and its reference bit is
cleared. The next victim search starts from the next page.
Thanks,
--
Mikhail
More information about the cs33211
mailing list