


VIRTUAL MEMORY WINDOWS
If your computer lacks the random access memory (RAM) needed to run a program or operation, Windows uses virtual memory to compensate. Here comes a question: do we still need virtual memory considering that the RAMs now are generally no less than 4GB. All these facts have made contributions in generalizing the large capacity RAMs. In the meantime, due to the popularity of Windows 7, more and more people nowadays choose to use 64-bit OS instead of 32-bit OS. The user will have the lesser hard disk space for its use.In the past few years, the rapid development of computer hardware led to a great cost reduction of RAM on the market.It takes more time in switching between applications.The system becomes slower since swapping takes time.There is no need to buy more memory RAMs.User can run large application with less real RAM.

The degree of Multiprogramming will be increased.This page table base address will be added to the page number of the Logical address when it comes to accessing the actual corresponding entry. The CPU contains a register which contains the base address of page table that is 5 in the case of P1 and 7 in the case of P2. The page tables of both the processes contain various information that is also shown in the image. The page tables of both the pages are 1 KB size each and therefore they can be fit in one frame each. In the third partition, 1 st page of P1 is stored and the other frames are also shown as filled with the different pages of processes in the main memory. The OS resides in the first two partitions. The main memory contains 8 frame of 1 KB each. Let us assume 2 processes, P1 and P2, contains 4 pages each. Snapshot of a virtual memory management system We will discuss each one of them later in detail. There are various page replacement algorithms which are used to determine the pages which will be replaced. In demand paging, the pages of a process which are least used, get stored in the secondary memory.Ī page is copied to the main memory when its demand is made or page fault occurs. Demand Pagingĭemand Paging is a popular method of virtual memory management. Since all this procedure happens automatically, therefore it makes the computer feel like it is having the unlimited RAM. In this scheme, whenever some pages needs to be loaded in the main memory for the execution and the memory is not available for those many pages, then in that case, instead of stopping the pages from entering in the main memory, the OS search for the RAM area that are least used in the recent times or that are not referenced and copy that into the secondary memory to make the space for the new pages in the main memory. In modern word, virtual memory has become quite common these days. Instead of loading one big process in the main memory, the Operating System loads the different parts of more than one process in the main memory.īy doing this, the degree of multiprogramming will be increased and therefore, the CPU utilization will also be increased. In this scheme, User can load the bigger size processes than the available main memory by having the illusion that the memory is available to load the process.

This is done by treating a part of secondary memory as the main memory. Virtual Memory is a storage scheme that provides user an illusion of having a very big main memory. Next → ← prev What is Virtual Memory in OS (Operating System)?
