Level 0 · Module 1

CPU, RAM, and storage

Understand the processor, working memory, and long-term storage as a team.

Difficulty
beginner
Time
9 min read
Prerequisites
What is a computer?
Reading progress0% read

Not completed

By the end, you can

  • Describe the distinct roles of CPU, RAM, and storage.
  • Explain why opening a program moves data into RAM.
  • Predict what happens to unsaved work when power is lost.

Summary

The CPU carries out instructions, RAM holds the information currently being worked on, and storage preserves files after power is off. They cooperate; none can replace the others.

Introduction

“My computer has 16 GB” can mean RAM or storage, but they are not the same thing. Keeping their jobs separate explains why a full disk, too many open apps, and an older processor cause different problems.

Explanation

Think of these parts as a team with different jobs. The CPU carries out small instructions. RAM is the fast, temporary workspace that holds an open program and the information it is using right now. Storage—such as an SSD—keeps files and installed programs when the power is off. To open an app, the operating system copies the parts it needs from storage into RAM. The CPU can then work with them.

Real-world example

Editing a document

Your document file is stored on storage. Opening it puts the editor and the document data into RAM. The CPU handles each keystroke. Until you press Save, the changed version is usually only in RAM. Pressing Save writes that version back to storage.

See the movement of information

Interactive exploration

Memory hierarchy

Step 1 of 4

CPUCACHERAMSTORAGE

address 42

CPU requests data. The CPU asks for the value at a memory address.

When an app starts, it does not copy every related file into RAM. The operating system brings in the parts needed now and can fetch more later. This lets a computer run software larger than its free RAM, although it may become slow when it has too little working space.

Code example

document-flow.txttext
storage: report.txt
open:    storage → RAM
edit:    CPU reads and updates RAM
save:    RAM → storage

Common mistakes

  • Calling RAM “memory space” without noting that it is temporary.
  • Expecting unsaved edits to survive a sudden shutdown.
  • Assuming a larger SSD makes every calculation faster; CPU and RAM may be the limiting parts.

Quiz

Knowledge check

You type a new sentence in a document, then the power fails before you save. Where was that new sentence most likely being held?

Try it

Diagnose the bottleneck

A laptop slows down when many browser tabs are open, but it has plenty of free disk space. Which component would you investigate first, and why?

Key takeaways

  • CPU executes instructions; RAM is active workspace; storage persists files.
  • Programs are commonly loaded from storage into RAM before execution.
  • Saving moves important work from temporary memory to persistent storage.
View module overview