![]() |
The main memory is divided into fixed size blocks and programs are divided into the same size blocks. |
![]() |
Suppose that there are some programs are running and need memory. The operating system determine |
| which program is using what portions of memory and allocating each program the amount of memory |
| that it needs. |
![]() |
If the programs need more memory and there is not enough memory available to satisfy a request of a |
| program, then the operating system may sweeps out a program's memory by writing the contents to disk |
| and then allocated to the program making the request. |
![]() |
When the program needs the swapped out memory back the operating system sweeps in the memory |
| by reading it back from the disk. |
![]() |
The area in the hard disk that is used as a virtual memory is called page file, and the operating system |
| uses a program called virtual memory manager (VMM) to manage this process. |
