Step 3/ 17· Computer Memory1 min
Primary memory
The CPU accesses primary memory directly.
RAM (Random Access Memory)
- Volatile: contents are lost when power goes off.
- Read and write memory; holds programs and data currently in use.
- Two main kinds: SRAM (static, faster, costlier, used for cache) and DRAM (dynamic, needs constant refreshing, cheaper, used as main RAM).
ROM (Read Only Memory)
- Non-volatile: contents stay without power.
- Holds start-up instructions (the BIOS/boot program), called firmware.
- Types:
| Type | Key feature |
|---|---|
| PROM | Programmable once by the user |
| EPROM | Erased with ultraviolet light, then reprogrammed |
| EEPROM | Erased electrically, can be rewritten |
| Flash | Block-wise electrical erase; used in pen drives, SSDs, memory cards |
| Point | RAM | ROM |
|---|---|---|
| Volatility | Volatile | Non-volatile |
| Use | Running programs | Boot instructions |
| Read/write | Both | Mainly read |
| Speed | Fast | Slower than RAM |
Cache memory
A small, very fast memory that stores frequently used data so the CPU need not wait for the slower RAM. It is why repeated operations run faster.