The CPU needs somewhere close to work.
When a program is running, the CPU needs quick access to data and instructions.
Primary storage is storage that the CPU can access directly while the computer is working.
↔
Primary Storage
↓
Working data
Understand the storage the CPU can use directly, including RAM, ROM, cache and registers, without going too deep too soon.
When a program is running, the CPU needs quick access to data and instructions.
Primary storage is storage that the CPU can access directly while the computer is working.
Primary storage is not mainly for keeping files forever.
It helps the CPU run programs, hold instructions, store temporary results and access important start-up instructions.
Your desk holds the work you are using right now. It is quick to reach, but it is not where you store everything permanently.
Primary storage is like the computer's desk: close, fast and used for current work.
RAM stands for Random Access Memory.
It stores programs, data and instructions that are currently in use. It is volatile, so its contents are lost when the power is turned off.
ROM stands for Read Only Memory.
It is non-volatile, so it keeps its contents without power. It commonly stores firmware, BIOS or bootstrap instructions needed when the computer starts.
Cache is small, fast memory that stores frequently used data and instructions.
Registers are tiny, very fast storage locations inside the CPU. You have already met: PC, MAR, MDR, CIR and ACC.
Volatile storage loses its contents when power is turned off.
Non-volatile storage keeps its contents without power.
RAM stores data and programs currently in use. ROM stores start-up instructions.
RAM is volatile. ROM is non-volatile.
Students sometimes think primary storage means any storage inside the computer.
The important point is that primary storage is directly accessible by the CPU.
Primary storage is directly accessible by the CPU.
RAM stores currently running data and programs. ROM stores start-up instructions. Cache stores frequently used data. Registers hold tiny pieces of data inside the CPU.
Now that you understand primary storage, the next lesson looks at secondary storage: magnetic, optical and solid-state.