4.1 Computer components, CPU/memory/storage & operating systems

Key Takeaways

  • The CPU runs a fetch-decode-execute cycle; clock speed (GHz) and core count determine how much work it does per second.
  • RAM is volatile working memory that clears at power-off; storage (HDD/SSD) is non-volatile and keeps data permanently.
  • The memory hierarchy runs fastest-to-slowest: registers, cache, RAM, then storage - each level larger, slower, and cheaper.
  • Firmware (BIOS or UEFI) runs the POST and loads the bootloader, which starts the operating system.
  • The OS kernel manages processes, memory, file systems, drivers, and permissions; Linux uses root and a single / tree, Windows uses Administrator and drive letters.
Last updated: July 2026

How a Computer Is Organized

Every computer follows the same basic plan: a central processor that does the work, memory that holds what it is working on, storage that keeps data when the power is off, and buses that carry signals between them. The motherboard is the main circuit board that ties these parts together. It hosts the CPU socket, memory (RAM) slots, expansion slots, storage connectors, and the firmware chip that starts the machine. Many systems also include a GPU (Graphics Processing Unit), a specialized processor with thousands of small cores built for the parallel math behind graphics and, increasingly, machine learning.

The CPU

The CPU (Central Processing Unit) is the "brain." It executes instructions in a repeating fetch-decode-execute cycle: fetch an instruction from memory, decode what it means, execute it, then repeat. Its speed is measured in clock cycles per second (hertz); a 3.0 GHz CPU steps three billion times per second. Modern CPUs have multiple cores, so a quad-core chip can run four instruction streams at once. The width of the CPU - commonly 32-bit or 64-bit - is how many bits it handles at once; a 64-bit CPU can address far more RAM than a 32-bit one, which tops out near 4 GB. Inside the CPU are tiny, extremely fast cells called registers that hold the operands it is actively using.

The memory hierarchy

Computers use several kinds of memory arranged by a trade-off: the faster the memory, the smaller and more expensive it is. From fastest to slowest:

LevelExampleVolatile?Typical sizeSpeed
RegistersInside CPUYesBytesFastest
Cache (L1/L2/L3)On/near CPUYesKB-MBVery fast
Main memoryRAMYesGBFast
StorageSSD / HDDNoGB-TBSlowest

RAM (Random Access Memory) is the computer's working memory. It is volatile, meaning its contents vanish when power is lost. Cache is a small pool of very fast memory that keeps copies of data the CPU used recently, so it does not have to wait on slower RAM. Registers sit at the very top - smallest and fastest.

Worked example: when the CPU needs a value, it first checks its registers, then L1 cache, then L2/L3 cache, then RAM, and only if none hold it does it read from storage. Each step down is roughly ten times slower, which is why keeping "hot" data high in the hierarchy makes programs fast. Because storage is far slower than RAM, a program forced to swap heavily to disk - called thrashing - feels sluggish.

Storage

Storage keeps data permanently and is non-volatile - it survives a power-off. A hard disk drive (HDD) stores bits magnetically on spinning platters read by a moving head. A solid-state drive (SSD) stores bits in flash memory chips with no moving parts, so it is far faster and more shock-resistant. The key distinction to remember: RAM is volatile working memory; storage is non-volatile permanent memory. Turning the computer off empties RAM but not the SSD.

Buses and I/O

A bus is a set of wires that moves data between components - for example, the memory bus between the CPU and RAM. Wider, faster buses move more data per second. I/O (input/output) covers devices that move data in and out of the machine: keyboards and mice are input; monitors and printers are output; a touchscreen and a network card are both. Ports such as USB let these devices attach to the motherboard.

Booting: BIOS and UEFI

When you press power, firmware on the motherboard runs first. Older machines use the BIOS (Basic Input/Output System); modern machines use UEFI (Unified Extensible Firmware Interface), which supports larger disks, faster boot, and security features like Secure Boot. The firmware runs a POST (power-on self-test) to check hardware, then loads a small bootloader from storage, which in turn loads the operating system.

The Operating System

The operating system (OS) is the software layer that manages the hardware and gives programs a consistent way to use it. Its core is the kernel, which has privileged access to hardware. Programs request services through system calls, which switch the CPU from unprivileged user mode into privileged kernel mode so the kernel can act safely. Key OS jobs:

  • Process management - schedules which program runs on the CPU and when, giving each a fair time slice so many programs appear to run at once.
  • Memory management - hands out RAM to programs, isolates them so one cannot corrupt another, and uses virtual memory (swapping to disk) when RAM runs low.
  • File systems - organize storage into files and folders (NTFS on Windows, ext4 on Linux) and track where each file's bits live.
  • Device drivers - translate general OS requests into the specific commands each piece of hardware understands.
  • Permissions and users - control who may read, write, or execute each file.

Windows vs Linux

Windows uses drive letters (such as C:), the NTFS file system, and a graphical shell. Linux uses a single rooted tree (/), file systems like ext4, and is common on servers and security tooling. On Linux the administrator account is called root; on Windows the equivalent is Administrator. Linux permissions are shown as read/write/execute bits for the owner, group, and others - worth knowing because so much cyber work happens on Linux systems.

Test Your Knowledge

Which statement correctly distinguishes RAM from storage such as an SSD?

A
B
C
D
Test Your Knowledge

Which ordering of the memory hierarchy runs from fastest to slowest?

A
B
C
D
Test Your Knowledge

On a modern PC, what runs the power-on self-test and then loads the bootloader when you press the power button?

A
B
C
D