A computer runs a program whose total virtual address space exceeds the available physical RAM. Which mechanism can allow the program to run by keeping only parts of it in RAM?

Options

  • A. Disk defragmentation
  • B. Virtual memory with demand paging
  • C. CPU pipelining
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

B. Virtual memory with demand paging

Detailed Explanation

Correct Answer: Virtual memory with demand paging.

Explanation: Virtual memory allows a process to use a virtual address space larger than the available physical RAM. With demand paging, pages are brought into RAM when needed. Inactive pages may be stored on secondary storage. Excessive page faults can cause thrashing and severely reduce performance.