Page replacement algorithm: Difference between revisions

Content deleted Content added
Mxxxr (talk | contribs)
Aging: add more information
Mxxxr (talk | contribs)
Aging: Make the python code easier to understand
Line 152:
Vs = [0] * len(Rs[0])
for t, R in enumerate(Rs):
Vs[:] = [R[i] << (k - 1) | V >> 1
for i, V in enumerate(Vs)]
print("{:02d} | {} | [{}]".format(t, R,