Topic 02

CPU, Memory, and Storage

Concept

Almost every computer — your phone, your laptop, a giant server in a data center — is built around three core parts doing three different jobs. Learn to tell them apart, and a great deal of confusing tech talk suddenly clicks into place.

The three are the processor (the CPU), memory (almost always called RAM), and storage (the disk). Mixing up the last two is the most common beginner mistake there is — and the one most worth getting right, because "CPU," "RAM," and "disk" turn up in nearly every other course you might take.

Three parts, three jobs
CPU
The processor — does the actual work, one tiny step at a time, billions of times a second.
Memory (RAM)
The fast workspace — holds what you're using right now. Fast, but cleared when the power goes off.
Storage
The permanent shelf — keeps all your files whether the computer is on or off. Slower, much larger.

The CPU: the Part That Does the Work

The CPU — short for central processing unit — is the part that actually does things. It follows instructions one tiny step at a time, but it does so billions of times every second, which is why a computer feels instant. Every calculation, every key press, every moving pixel passes through it in the end.

When people call a computer "fast" or "slow," they're usually talking about the CPU, together with memory. It's the closest thing the machine has to a brain — though, as the next topics will show, it's a brain that only ever follows exact instructions it's given, never one that decides anything on its own.

Memory: the Fast Workspace

Memory, nearly always called RAM, is the computer's workspace — where it holds whatever you're using at this moment. The app in front of you, the photo you're editing, the dozen open browser tabs: all of it sits in memory while it's active, because memory is fast enough for the CPU to reach instantly.

Memory has one defining catch: it's temporary. The instant the power goes off, everything in memory vanishes. That isn't a flaw — it's the trade-off that makes it so fast. It's also why unsaved work disappears in a crash: it lived only in memory and had never been written to permanent storage.

Storage: the Permanent Shelf

Storage — the hard drive or SSD inside the machine — is where your files live for keeps. Documents, photos, apps, and the operating system itself all stay on storage whether the computer is switched on or off. It holds far more than memory does, but it's much slower for the CPU to reach.

So the two split the labor. Storage keeps everything, permanently, but slowly. Memory holds just what's in use, temporarily, but fast. When you open a file, the computer copies it from slow storage into fast memory to work on; when you save, it writes your changes back to storage so they survive the next power-off.

How the Three Work Together

Put together, one simple rhythm runs the whole machine: storage keeps your files; opening one loads it into memory; the CPU does the real work on whatever is in memory; and saving writes the result back to storage. Every program you run is some version of that loop.

A desk makes it concrete. You, doing the work, are the CPU. The surface of the desk is memory — only so much fits, you keep what you're actively using on it, and it gets cleared at the end of the day. The filing cabinet across the room is storage — it holds everything, far more than the desk, but you have to get up and walk to it. Work happens on the desk; the cabinet is where things rest.

Common Confusions
  • "Memory and storage are the same thing." They're opposites in the ways that matter: memory is fast and temporary, storage is slower and permanent.
  • "More storage makes a computer faster." Usually not — speed comes mostly from the CPU and the amount of memory. A bigger disk just holds more stuff.
  • "Shutting down erases my files." Files on storage survive every power-off. Only memory, the temporary workspace, is cleared.
  • "My files are kept in RAM." Your files live on storage. RAM only holds copies of the few things you're actively using right now.
Why It Matters
  • "CPU," "RAM," and "disk" appear in every cloud, container, and Linux course — this is where they're learned for good.
  • When you rent a computer in the cloud, later in this course, you choose exactly how much CPU, memory, and storage it has and pay for each — so the difference is real money.
  • Knowing that unsaved work lives only in memory is why "save often" is real advice, not nagging.
  • It explains everyday life: why too many open tabs slow things down (memory fills up), and why a nearly full disk usually doesn't.

Knowledge Check

What is the key difference between memory (RAM) and storage?

  • Memory is fast but temporary; storage is slower but keeps everything when the power is off
  • Storage is fast but temporary; memory is slower but keeps everything when the power is off
  • They are two names for the same part, just measured in different units
  • Storage is the fast workspace the CPU uses; memory is the long-term shelf for files

The power cuts out while you're editing a photo, before you save. Why is your recent work lost?

  • It was only in memory, which is wiped the instant the power goes off
  • The CPU deletes unsaved work on purpose whenever the computer shuts down
  • Storage erases any file that was open at the moment the power was lost
  • The photo was saved, but firmware removes it during the next startup

Which part actually does the computer's work, one step at a time and very fast?

  • The CPU — the processor at the center of the machine, following instructions
  • Memory (RAM), which performs each calculation before passing it onward
  • Storage, where all of the work is carried out and the final result is then displayed
  • The firmware, which runs your programs once the computer has started

You got correct