9618/31 October/November 2022 · Question 8 · 4 marks
(a) Explain what is meant by virtual memory. (b) State one difference between paging and segmentation.
Points that gain marks
- Secondary storage (disk) is used to extend the memory.
- So the CPU seems to be able to use more memory than there is RAM.
- Only the data in use needs to be in RAM: pages are swapped between RAM and disk when needed.
- Paging uses blocks of a fixed size; segmentation uses blocks of different sizes.
In this lab: Each page fault in the lab is a swap: a page comes in from disk, and the page in that frame goes out.