When simulating the clock page replacement algorithm, when a reference comes in which is already in memory, does the clock hand still increment?
Here is an example:
With 4 slots, using the clock page replacement algorithm
Reference list: 1 2 3 4 1 2 5 1 3 2 4 5
Initial list would look like this:
-> [1][1]
[2][1]
[3][1]
[4][1]
The next reference to insert would be 1, then 2. Would the hand still point at 1 after 1, and after 2 ? In other words, after inserting the 5, would the clock look like this :
-> [5][1]
[2][0]
[3][0]
[4][0]
?