In brief
RAM (Random Access Memory): volatile (data lost when power is off), read and write, holds currently running programs and data.
- RAM (Random Access Memory)
- SRAM (Static RAM)
- cache
- DRAM (Dynamic RAM)
- ROM (Read Only Memory)
- PROM
- EPROM
- EEPROM
RAM (Random Access Memory): volatile (data lost when power is off), read and write, holds currently running programs and data.
-
SRAM (Static RAM): faster, costlier, used in cache, no refreshing.
-
DRAM (Dynamic RAM): slower, cheaper, needs constant refreshing, used as main memory.
ROM (Read Only Memory): non-volatile, holds start-up instructions (BIOS or firmware). Types: PROM (programmable once), EPROM (erased with UV light), EEPROM (erased electrically) and Flash memory (block-erase, used in pen drives and SSD).
Cache memory: a small, very fast memory between CPU and RAM that holds frequently used data. Levels L1 (inside CPU, fastest), L2 and L3. Virtual memory: use of disk space to extend RAM.