Bỏ qua nội dung

Labs · 9618 A2 16.1

Page Replacement

Virtual memory in action. Pages come in, but RAM has only a few frames. Choose which page to throw out, and count the page faults.

5 levelsFree bench

In the exam

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.

More real experiments

Đăng nhập hoặc tạo tài khoản

IGCSE, A-Level & AP