What is demand paging in virtual memory?

Options

  • A. Loading all pages of a process into physical memory before execution
  • B. Loading a page into physical memory only when it is required
  • C. Loading only the first instruction of every process
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

B. Loading a page into physical memory only when it is required

Detailed Explanation

Explanation: In demand paging, a page is brought into physical memory only when the process actually references it. This allows programs larger than physical memory to execute using virtual memory.