Practice mode Operating Systems

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

Explanation

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.

Report a problem

Answer checked How we write and check questions

Tip: press A, B, C or D to answer, and N for the next question.

Advertisement

Have a question about this answer?

Your email address will not be published. Required fields are marked *

Links and website addresses are not allowed in comments.