Professional Documents
Culture Documents
a part of the main memory. Virtual memory is a very common technique used in the operating systems
(OS) of computers.
Virtual memory uses hardware and software to allow a computer to compensate for physical memory
shortages, by temporarily transferring data from random access memory (RAM) to disk storage. In
essence, virtual memory allows a computer to treat secondary memory as though it were the main
memory.
Today, most PCs come with up to around 4 GB of RAM. However, sometimes this isn't enough to run
all the programs a user might want to use at once. This is where virtual memory comes in. Virtual
memory can be used to swap data that has not been used recently -- and move it over to a storage
device like a hard drive or solid-state drive (SDD). This will free up more space on the RAM.
Virtual memory is important for improving system performance, multitasking, using large programs
and flexibility. However, users shouldn't rely on virtual memory too much, because using virtual data is
considerably slower than the use of RAM. If the OS has to swap data between virtual memory and
RAM too often, it can make the computer feel very slow -- this is called thrashing.
Virtual memory was developed at a time when physical memory -- also referenced as RAM -- was
expensive. Computers have a finite amount of RAM, so memory can run out, especially when multiple
programs run at the same time. A system using virtual memory uses a section of the hard drive to
emulate RAM. With virtual memory, a system can load larger programs or multiple programs running
at the same time, allowing each one to operate as if it has infinite memory and without having to
purchase more RAM.