Hardware

What Is a CPU? What It Does and How to Check Yours

A CPU (central processing unit) is the chip in a computer that executes the instructions programs and the operating system give it. Intel calls it the "brain" of the computer, and it is the part that decides how quickly most everyday software runs.

Every program you open, from a browser to a spreadsheet, is ultimately a long list of small instructions. The CPU reads them and carries them out. It does not store your files and it does not draw most of what you see on screen. It does the calculating and the decision-making in between.

What does a CPU do?

Intel's description is that the CPU "executes the commands and processes needed for your computer and operating system." In practice that covers three jobs:

  • Running programs. Opening an app, scrolling a page, recalculating a spreadsheet cell: each becomes instructions for the CPU.
  • Running the operating system. Windows, macOS and Linux are themselves programs. They decide which application gets processor time and when.
  • Coordinating the rest of the hardware. Memory, storage, the network adapter and the display all depend on software that the CPU executes.

Microsoft's documentation describes the same idea at a lower level: a processor is "a device that can interpret a sequence of instructions on a computer."

What is inside a CPU?

A CPU is a single chip built from billions of transistors, according to Intel. The parts you will see mentioned on spec sheets are these:

TermWhat it means
CoreAn independent processing unit on the chip. Microsoft defines a core as "a physical processor on the integrated circuit", so a dual-core CPU has 2.
Thread (logical processor)What the operating system schedules work onto. With hyper-threading, one core can present two logical processors, so a CPU with 2 cores can show 4.
Clock speedHow fast the CPU runs, reported in MHz or GHz. Windows exposes it as CurrentClockSpeed and MaxClockSpeed, both in MHz.
CacheSmall, fast memory on the processor. Microsoft notes that L2 and L3 caches have a faster access time than main RAM.
SocketThe connector on the motherboard that the chip fits into, such as the SocketDesignation value Windows reports.

The core and thread distinction matters when you compare CPUs. The article on CPU cores vs threads explains how they differ in practice, and CPU clock speed explained covers why a higher GHz number does not always mean a faster chip.

CPU vs GPU: what is the difference?

Intel contrasts the two by design. A CPU has a small number of powerful cores and "is suited for various tasks, especially those for which latency or per-core performance is important." A GPU has many smaller, specialized cores and divides highly parallel work, such as graphics rendering and AI workloads, across them at once.

The CPU is the general-purpose part. It handles a wide mix of tasks and runs the operating system. The GPU is brought in for work that can be split into many identical pieces.

How to check which CPU you have

Windows (Task Manager)

Press Ctrl+Shift+Esc, open the Performance tab and select CPU. The model name appears at the top right, and the panel lists cores and logical processors.

Windows (PowerShell)

The Win32_Processor class holds the details. This command prints the name, core count, logical processor count and maximum speed:

Get-CimInstance Win32_Processor | Select-Object Name, NumberOfCores, NumberOfLogicalProcessors, MaxClockSpeed

Example output (your values will differ):

Name                                     NumberOfCores NumberOfLogicalProcessors MaxClockSpeed
----                                     ------------- ------------------------- -------------
Example Processor 3.40GHz                            8                        16          3400

According to Microsoft, if hyper-threading is enabled in the BIOS then NumberOfCores is less than NumberOfLogicalProcessors. Here 8 cores and 16 logical processors suggests two threads per core. MaxClockSpeed is in MHz, so 3400 means 3.4 GHz.

Linux

lscpu

The man page says lscpu gathers information from sysfs and /proc/cpuinfo and reports the number of CPUs, threads, cores, sockets, caches, family, model and stepping. On a virtual machine it reports the guest's configuration. The default output format may change between versions, so for scripts use lscpu --parse and check the valid column names with lscpu --list-columns.

Which CPU specs matter most?

It depends on the work.

  • Everyday use (web, documents, video calls): a modern CPU with a few cores is usually enough. Memory and storage speed often matter as much.
  • Tasks that split into many parts (video encoding, compiling code, rendering): more cores and threads help, because the work can run in parallel.
  • Tasks that run mostly on one thread (many older programs, some games): per-core performance matters more than core count. This is the "latency or per-core performance" case Intel describes.

Clock speed alone does not settle it. Two CPUs at the same GHz can do different amounts of work per cycle, and the spec sheet does not show that.

CPU vs the rest of the computer

People often mix up the CPU with other parts. A short list of what each one does:

  • RAM holds the data and programs that are in use right now. It is cleared when the power goes off.
  • Storage (SSD or hard drive) keeps files permanently.
  • Motherboard is the circuit board that the CPU, RAM and other parts plug into.
  • GPU is the graphics processor, either a separate card or part of the same package as the CPU.

If your CPU seems too slow

Open Task Manager (Windows) or run top (Linux) and watch CPU usage while the slowness happens. If one process holds the CPU near 100%, that program is the cause, not the hardware. If CPU usage stays low while the computer feels slow, the limit is usually elsewhere, such as memory or the drive. To rule out heat as a factor, see how to check CPU and GPU temperature.

Frequently asked questions

Is the CPU the same as the processor?
In everyday use, yes. 'CPU' (central processing unit) and 'processor' both mean the main chip that runs your programs. Strictly, a computer can also contain other processors, such as a graphics processor, but the CPU is the general-purpose one that runs the operating system.
Is the CPU the same as the computer tower?
No. The CPU is a small chip inside the computer, mounted on the motherboard. The metal or plastic case is the chassis, and people sometimes call it 'the CPU' by mistake.
Does a CPU store my files?
No. Files live on a drive such as an SSD. The CPU only works on data that has been loaded into memory, and it keeps small amounts in its own cache while it works.
Can a computer run without a CPU?
No. Every general-purpose computer needs a CPU to run the operating system and programs. Some systems have no separate graphics card, but none lack a CPU.

Sources