Primary and secondary storage
| Primary storage (main memory) | Secondary storage | |
|---|---|---|
| What it's for | Data and instructions the CPU needs now | Keeping programs and files long term |
| Accessed | Directly by the CPU | Loaded into RAM first |
| Speed | Very fast | Slower |
| Examples | RAM, ROM, cache | HDD, SSD, USB flash drive, DVD, cloud |
| Volatile? | RAM and cache are volatile; ROM isn't | Non-volatile |
- Volatile: loses its contents when the power is turned off
- Non-volatile: keeps its contents with no power