def __init__(self, size = 0, tau = 5): """the clock_arm is for the traversing the circular list, the -1 is for convenience. Lists can be accessed with -1. tau is the parameter for replacing pages. virtual_clock determines the page values and how old they are.""" Physical_Memory.__init__(self, size) self.clock_arm = -1 self.tau = tau self.virtual_clock = 0
def __init__(self, size = 0): Physical_Memory.__init__(self, size) self.pages_left = []