main memory
Quick Summary
RAM, or random-access memory, is the main memory in a computer where the central processing unit (CPU) can directly read and write data quickly. This allows for rapid access to information regardless of where it's stored.12
There are two main types of RAM:
* Static RAM (SRAM): This type is very fast but physically larger and more expensive. It's typically used for small amounts of memory like CPU registers and cache memory. SRAM retains data as long as power is supplied.31
* Dynamic RAM (DRAM): This type is more common for main memory because it's denser and cheaper. DRAM stores data in capacitors that need to be refreshed periodically to retain information.13
Unlike ROM (read-only memory), RAM is volatile, meaning it loses its contents when the power is turned off.45
Ask Britannica AI about this topic
Britannica doesn't have a full article on this topic, so we've curated a list of our relevant coverage.

