RTUComputer ScienceYr 2024 · Sem 52024

Q7Operating System

Question

2 marks

What is Demand Paging?

Answer

Demand Paging is a virtual memory technique where pages are loaded into physical memory only when they are accessed (demanded), rather than loading the entire program upfront.

In demand paging, pages of a process are loaded into memory only when they are needed. Initially, the process starts with no pages in memory. When a page is referenced that is not in memory, a page fault occurs, and the OS loads the required page from disk into a free frame. This reduces initial loading time, reduces memory usage, and allows processes larger than physical memory to run. It relies on the principle of locality of reference.

Back to Paper