Later, page 0 is needed again, at which point it is copied back in, perhaps into the frame now occupied by page 6. Since page 6 was modified in memory, we say it is dirty. Dirty pages must be copied back out to disk whenever the frame they sit in is given over to a new page, or else the changes will be lost. This process continues until the program finishes. |