Which of the statement is not true in regards to virtual memory?
2022
Which of the statement is not true in regards to virtual memory?
- A.
The main objective for using virtual memory is to increase the effective capacity of the memory system
- B.
Size of the program can be as large as the size of the secondary memory
- C.
Program and data are stored in the secondary memory
- D.
None of these
Attempted by 373 students.
Show answer & explanation
Correct answer: D
Correct answer: None of these — all three statements are true.
The main objective is to increase the effective capacity of the memory system: Virtual memory uses secondary storage as a backing store so programs can run as if there is more RAM than physically present.
Size of the program can be as large as the size of the secondary memory: Since parts of a program can remain on disk and be paged in on demand, the usable program size is bounded by the backing store and the process's virtual address space rather than only by physical RAM.
Program and data are stored in the secondary memory: The disk holds pages or segments that are not currently resident in RAM; only needed pages are loaded into physical memory when accessed.
Note: In practice, virtual memory behavior is also limited by the size of the virtual address space and available disk space, and performance depends on page-fault frequency.
A video solution is available for this question — log in and enroll to watch it.