top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is virtual memory and why it its required in an OS?

+1 vote
669 views
What is virtual memory and why it its required in an OS?
posted Jul 25, 2015 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Consider a scenario when your real program is more then the size of RAM or physical memory then how can you execute such a program. The answer is Virtual Memory.

Virtual memory is simply the operating system using some amount of disk space as if it were real memory or we can say Virtual memory is the separation of user logical memory from physical memory which is stored in the disk. This separation allows an extremely large virtual memory to be provided for programmers when only a smaller physical memory is available.

How Virtual Memory Works
Virtual memory is commonly implemented by demand paging, which means a page is bought into the memory when it is required. Under this concept Each address generated by a program is considered virtual. It must be translated to a real physical address and if the real address is not there in the memory then it is page fault and corresponding page is bought into the physical memory. See the following image which clarify the complete scenario ...

enter image description here

answer Jul 27, 2015 by Aastha Joshi 1 abuse reported
...