COMPUTER FUNDAMENTALS

COMPUTER ARCHITECTURE

MEMORY SYSTEMS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Why is Virtual Memory needed in a computer system?
A
It is used as a fast type of memory for programs currently in use to speed up the performance of a computer.
B
When several programs run at the same time, the RAM can be full. Instead of closing programs the Operating system uses virtual memory to store some data.
C
Either A or B
D
None of the above
Explanation: 

Detailed explanation-1: -The advantages to using virtual memory include: It can handle twice as many addresses as main memory. It enables more applications to be used at once. It frees applications from managing shared memory and saves users from having to add memory modules when RAM space runs out.

Detailed explanation-2: -Physical memory cannot store large programs. So virtual memory is used that provides a larger amount of space to the process. Some of the portions is stored in the disk storage. It allows us to extend the use of physical memory by using hard disk space.

Detailed explanation-3: -Virtual memory also allows the sharing of files and memory by multiple processes, with several benefits: System libraries can be shared by mapping them into the virtual address space of more than one process. Processes can also share virtual memory by mapping the same block of memory to more than one process.

Detailed explanation-4: -By treating each level of the higherarchy of the lower layers, the system is able to greatly increase access time. So while both are not technically needed (some embedded systems will only use physical addresses), you would want both on your typically computer.

There is 1 question to complete.