Which of the following describes demand paging?

Enhance your understanding with the System Software, Architecture, Memory and Storage Test. Study with flashcards and multiple choice questions. Each question offers hints and detailed explanations. Prepare effectively for your exam!

Multiple Choice

Which of the following describes demand paging?

Explanation:
Demand paging loads pages on first access. It keeps a program’s pages on disk and only brings a page into physical memory when the program actually tries to use it. When such a reference occurs, the system detects a page fault, fetches the needed page from disk into memory, and then resumes execution. This lets large programs run with less RAM because only the actively used pages occupy memory. The other descriptions describe loading everything up front, which is eager loading, or removing paging entirely, which defeats the purpose of demand paging, or requiring all pages to be in memory, which also contradicts the on-demand approach.

Demand paging loads pages on first access. It keeps a program’s pages on disk and only brings a page into physical memory when the program actually tries to use it. When such a reference occurs, the system detects a page fault, fetches the needed page from disk into memory, and then resumes execution. This lets large programs run with less RAM because only the actively used pages occupy memory.

The other descriptions describe loading everything up front, which is eager loading, or removing paging entirely, which defeats the purpose of demand paging, or requiring all pages to be in memory, which also contradicts the on-demand approach.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy