What does demand paging do when a process starts running?
Correct answer D. It loads a page into memory only when that page is first referenced
Demand paging is lazy: pages stay on the backing store until the process touches them, at which point a page fault brings the page in. Programs can therefore start faster, use less memory and be larger than physical memory. Loading the whole program first is how simple swapping systems work, and the optimal algorithm needs future knowledge, so it cannot drive loading.
Answer checked How we write and check questions
Discussion