# CPU

> The chip that runs your programs, one instruction after another, very fast.

- Level: Basic
- Topics: Hardware
- URL: https://tidbit.legios.com.ar/cpu/
- In Spanish: [CPU](https://tidbit.legios.com.ar/es/cpu/)

The **CPU** (Central Processing Unit) is the chip that executes programs. Everything a computer does, from opening a file to running a browser, is a stream of tiny instructions (add these two numbers, copy this to memory, jump to that line), and the CPU runs through them billions of times per second. It is the general-purpose brain: not specialized in anything, able to do everything.

A modern CPU has several **cores**, each one an independent processor, so it can run several programs (or several parts of one) at once; a laptop has around 8, a server 64 or more. Its speed is quoted in gigahertz (clock ticks per second), but the design of each core matters as much as the clock. Intel and AMD make most PC and server CPUs; Apple designs its own (the M series) on the ARM architecture, as do phone makers.

The CPU is good at varied, branching work with lots of decisions, which is most software. It is bad at doing the same simple calculation on millions of numbers at once, which is why graphics and AI moved to the GPU. Even then the CPU is still there, running the operating system and feeding the GPU its work.

When a computer feels slow today, the CPU is rarely the reason; more often it is waiting on RAM, the SSD or the network. But the CPU still decides how fast a single task finishes, and its power use decides how long a laptop battery lasts.

## An analogy

A chef who can cook any recipe, one step at a time, very fast. More cores means more chefs in the kitchen; a GPU is a separate room with a thousand helpers who only chop.

## Keep in mind

- Runs all general-purpose software, instruction by instruction.
- Cores work in parallel; clock speed (GHz) is how fast each core ticks.
- Two instruction families dominate: x86 (Intel, AMD) and ARM (Apple, phones, more and more servers).
- Great at varied logic, weak at massive repeated math; that is the GPU's job.

## Go deeper

- [Central processing unit on Wikipedia](https://en.wikipedia.org/wiki/Central_processing_unit)
- [Multi-core processor on Wikipedia](https://en.wikipedia.org/wiki/Multi-core_processor)

## Related terms

- [Chip](https://tidbit.legios.com.ar/semiconductor-chip/): A sliver of silicon carrying billions of tiny switches that compute and remember.
- [Web browser](https://tidbit.legios.com.ar/web-browser/): The app that fetches web pages from the internet and draws them on your screen.
- [Cores and threads](https://tidbit.legios.com.ar/cpu-cores-and-threads/): Why a CPU is really several processors, and why it can juggle even more tasks.
- [Server](https://tidbit.legios.com.ar/server/): A computer whose job is to answer requests from other computers, all day, every day.
- [Clock speed](https://tidbit.legios.com.ar/clock-speed/): How many times per second a processor ticks, measured in gigahertz (GHz).
- [Intel](https://tidbit.legios.com.ar/intel/): The American company behind most PC and server processors for decades.
- [AMD](https://tidbit.legios.com.ar/amd/): The chip designer that competes with Intel in CPUs and with NVIDIA in GPUs.
- [Apple](https://tidbit.legios.com.ar/apple/): The company that sells the iPhone and the Mac, plus the services that run on them.
