zappz

All topics

computer memory

1 article

Computer memory is the hardware that holds the programs and data a computer is working with so the processor can reach them quickly.

The main working memory is called RAM, short for random-access memory. It is fast, but it is volatile, meaning its contents vanish when the power goes off. Storage, such as a solid-state drive or hard disk, is slower and keeps its contents without power. A computer loads a program from storage into RAM to run it, which is why opening an application takes a moment and why unsaved work is lost in a power cut.

Memory is arranged in layers that trade speed against cost. Closest to the processor are small, very fast caches that hold the data needed next. Then comes RAM, far larger. When RAM fills, the system can borrow space on the storage drive, a technique called virtual memory or swapping, at a heavy cost in speed. The operating system hands out memory to each program and keeps programs from reading or overwriting each other's share.

How much memory a machine has, and how well software uses it, decides how many things it can do at once before it slows down. Too little memory, or a program that wastes it, shows up as stuttering, long pauses and crashes. Understanding the basics helps people choose a computer, diagnose a slow one, and see why programmers put such effort into using memory carefully.

  1. memory leakWhat Is a Memory Leak in a Program and Why It Slows a PCA memory leak happens when a program reserves RAM and never gives it back, so available memory shrinks until the computer slows, stalls or crashes. · 8 min read

Related topics

All topics