---
title: "CPU"
url: https://www.daytona.com/definitions/c/cpu
---

# CPU

A CPU is the general-purpose processor that runs the operating system and most of the programs of a computer.

A CPU, or central processing unit, runs the operating system and almost all application code of a computer. It can execute any program written for its instruction set architecture, which makes it general-purpose. The same chip runs a database or a compiler without any change to the hardware. It also runs the code that starts the machine and controls its devices.

The design goal of a CPU is to run one stream of instructions as fast as possible. Work that repeats the same operation many times at once usually goes to a GPU instead. This makes each CPU core large and power hungry next to a GPU core. In return, a CPU core is much faster on code full of branches and decisions. The split is a trade between the speed of one task and the throughput of many.

A modern CPU is a single chip, or a package of several smaller chips called chiplets, that holds many cores. Servers often hold two CPUs in separate sockets, which adds cores but makes some memory slower to reach, an effect called NUMA. Cloud providers rarely sell whole CPUs and sell vCPUs instead. A vCPU is usually backed by one hardware thread of a core. A sandbox that runs as a virtual machine sees only its vCPUs, not the CPUs of the host.

## Related terms

- [AI accelerator](https://www.daytona.com/definitions/a/ai-accelerator.md)
- [Auto-stop](https://www.daytona.com/definitions/a/auto-stop.md)
- [Autoscaling](https://www.daytona.com/definitions/a/autoscaling.md)
- [Bare metal](https://www.daytona.com/definitions/b/bare-metal.md)
- [Cgroup](https://www.daytona.com/definitions/c/cgroup.md)
- [Checkpoint and restore](https://www.daytona.com/definitions/c/checkpoint-and-restore.md)
