RAM — the working memory
Volatile, fast, holds running programs.
RAM (Random Access Memory) is the device's working memory while it is on.
Properties:
- Volatile — contents lost when power is off.
- Fast — access time around 10–100 nanoseconds.
- Random access — any byte can be read with equal speed (no need to sequentially scan).
- Read-write — can be read AND written by the CPU.
Role:
- Holds the operating system while running.
- Holds all open programs and their data.
- Acts as a fast buffer between CPU and storage.
Typical sizes:
- Budget laptop / phone: 4–8 GB.
- Mid-range: 16 GB.
- High-end / workstation: 32–128 GB.
More RAM = more programs running smoothly. When RAM runs out, the OS resorts to virtual memory (disk) — far slower.