Computer Basics

Main parts

Every computer is made of a few parts that each do one job. The diagram shows where they sit on the main board.

CPU RAM Power Graphics card (GPU) Storage (SSD) Board
A desktop motherboard, seen from above.

CPU

The processor. It follows program instructions and does the math. The next section covers it in detail.

RAM

Short-term memory for whatever is open right now. It empties when the power goes off.

Storage

Keeps files and programs for good. SSDs use flash chips, hard drives use spinning disks.

Motherboard

The main circuit board that connects every other part.

GPU

The graphics card. It draws what you see on screen.

Power supply

Converts wall power into the steady voltages the parts need.

The CPU

The central processing unit repeats one loop billions of times a second: fetch an instruction, decode it, run it, store the result.

Fetch Decode Execute
The loop one core repeats.

Four numbers describe how fast a CPU can be:

Memory and storage

All of these hold data. They differ in speed, and in whether the data survives a shutdown. A nanosecond (ns) is one billionth of a second. Values are typical for a current desktop and vary by part.

TypeAccess time (ns)Typical sizeKeeps data off?
CPU cache132 MBNo
RAM8016 GBNo
SSD100,0001 TBYes
Hard drive10,000,0004 TBYes