What happens when RAM gets full?
RAM holds the programs and data the computer is currently using.
But RAM has a limit. If it becomes full, the computer needs somewhere else to temporarily place some data.
📄 📄 📄 📄
↓
No space left
Understand how a computer uses part of secondary storage as temporary overflow space when RAM becomes full.
RAM holds the programs and data the computer is currently using.
But RAM has a limit. If it becomes full, the computer needs somewhere else to temporarily place some data.
Virtual memory is a section of secondary storage used as temporary extra space for RAM.
It is not real RAM. It is slower, but it can stop programs from crashing when memory is full.
Your desk is RAM. It holds the work you need right now.
When the desk is full, you move less urgent papers to a nearby filing box. The work continues, but reaching the filing box is slower than using the desk.
A student has many apps open. RAM becomes full.
The operating system moves data that is not needed right now into virtual memory. This frees space in RAM for the new program.
A page is a block of data that can be moved between RAM and virtual memory.
This movement is called paging or page swapping.
In exam answers, be clear that virtual memory is created using secondary storage.
It is often described as a partitioned section of the secondary storage device.
Virtual memory helps the computer keep running, but it does not make the computer faster.
Secondary storage is slower than RAM, so heavy use of virtual memory can slow the computer down.
Virtual memory is used when RAM is full.
It uses part of secondary storage as temporary overflow space. Pages of data can be moved between RAM and virtual memory.
This helps programs keep running, but it is slower than using RAM.
Now that you understand local storage and virtual memory, the next step is understanding how files can be stored remotely using cloud storage.