Virtual memory is when the computer uses some of its hard disk space as if it were RAM. If you had open and were running ten applications at the same time (for example, the operating system, a word processor, a music program, a messenger program and so on), the amount of RAM these applications might need could add up to a total of 4.2 Gigabytes, for example. But imagine if your computer only had 4 Gigabytes.
Fortunately, it would still be able to run all 10 applications. It can find the extra 0.2 Gigabytes of memory it needs by using some of its hard disk space as if it were RAM. It is using the hard disk as it were 'pretend RAM'. This pretend RAM is known as 'virtual memory'.
- What the computer can do is to store all of the applications it possibly can in RAM.
- It then stores the last little bit of an application it needs on the hard disk.
- When the CPU needs to run the instructions that make up an application on the hard drive, it first of all frees up some space in RAM.
- It does this by moving some of the applications in RAM to the hard drive.
- Then it moves the application it needs from the hard drive to RAM and runs it.
In Windows, the area on the hard disk which is used for virtual memory is known as the 'swap file'.
Comments
No comments have yet been made