Operating systems
Free Virtual memory lessons
7 lessons, about 1½ hours in all. Each teaches one idea with a visual, then gives you a problem or a few questions on it. Read the lessons here, then create a free account to practise and keep your progress.
Stage 0Demand paging
- Why virtual memorySee how running programs bigger than RAM works, and what else the same mechanism gives you.12 min
- Page faultsFollow a page fault from the hardware trap to the restarted instruction.12 min
- What a page fault costsCalculate effective access time with page faults, and see why the fault rate must be tiny.12 min
Stage 1Page replacement
- Choosing which page to evictCompare FIFO, LRU and the optimal policy on a reference string, and see how far each is from the best.15 min
- Belady's anomalySee a case where giving FIFO more memory makes it fault more, and why LRU can't do that.11 min
- Approximating LRU: the clock algorithmUse one reference bit per page and a sweeping hand to get most of LRU's benefit at almost no cost.13 min
Stage 2Thrashing and the working set
All of Virtual memory is free
That’s the whole topic, from the first idea to the mastery stage, with no card needed. Create a free account to practise, keep your progress and carry on to the next topic.
Create your free account