Others

What is Virtual memory?

What is Virtual memory?

The computer is designed for performing multiple tasks at a time & for this, some memory is also used by the computer for executing the instruction those are given by the user. But when there is a situation when the memory (RAM) which is required by the user is high from the available memory. So, in that situation, we will use the concept of virtual memory.

In virtual memory, physical memory (hard disk) will be treated as a logical memory. This means with the help of physical memory a user will see or feels that the programs are running into the logical memory of the computer. With the help of virtual memory, all the spaces of the hard disk can be used as a logical memory so, the user executes any number of programs. Various benefits of virtual memory are:-

i) Unused Address Space:-

With the help of unused address space, a user can execute any number of programs because all the actual address will be treated as a logical address.

ii) Increase the degree of multi-programming:-

With the help of virtual memory, we can execute many programs at a time because many programs can fit in the physical memory so that more programs can be stored into memory but this will not increase the response time of the CPU means this will not affect on the execution of the programs.

iii) Decrease number of I/O operation:-

There will be less operation those are to be used to performing the swapping of the processes. All the programs will be automatically will be loaded into the memory when they are needed. But always remember that the whole programs are never copied into the memory means all the programs will be copied into the page means the parts of the programs.

Yami Rathore

I might look like I'm doing nothing, but in my head, I'm quite busy.🖤