Based on Chapter 6 of [Hai19]
(Usage hints for this presentation)
Computer Structures and Operating Systems 2022
Dr. Jens Lechtenbörger (License Information)
Simplistic example, 4 frames, hashing via modulo 4
“Figure 6.10 of [Hai17]” by Max Hailperin under CC BY-SA 3.0; converted from GitHub
Valid | Page | Process | Frame |
---|---|---|---|
1 | 0 | 42 | 1 |
1 | 1 | 42 | 0 |
1 | 6 | 42 | 3 |
0 | X | X | X |
“Figure 6.19 of [Hai17]” by Max Hailperin under CC BY-SA 3.0; converted from GitHub
Frames arranged in cycle, pointer to next frame
Page fault
Perform the following task in Learnweb.
Apply the page replacement algorithms OPT, FIFO, LRU, and Clock
(Second Chance) for four frames of main memory to the following
stream of page references under demand paging: 1, 3, 4, 7, 1, 2, 4,
1, 3, 4
Verify your results against the previous slide
and raise any questions that you may have.
This document is part of an Open Educational Resource (OER) course on Operating Systems. Source code and source files are available on GitLab under free licenses.
Except where otherwise noted, the work “OS09: Virtual Memory II”, © 2017-2022 Jens Lechtenbörger, is published under the Creative Commons license CC BY-SA 4.0.
In particular, trademark rights are not licensed under this license. Thus, rights concerning third party logos (e.g., on the title slide) and other (trade-) marks (e.g., “Creative Commons” itself) remain with their respective holders.