Every computer has a processor, whether it's a small efficiency processor or a large performance powerhouse, or else it wouldn't be able to function. Of course, the processor, also called the CPU or Central Processing Unit, is an important part of a functioning system, but it isn't the only one.

Today's processors are almost all at least dual-core, meaning that the entire processor itself contains two separate cores with which it can process information. But what are processor cores, and what exactly do they do?

What Is a Processor Core?

Stack of CPUs

A processor core is a processing unit that reads instructions to perform specific actions. Instructions are chained together so that, when run in real-time, they make up your computer experience. Literally, everything you do on your computer has to be processed by your processor.

Whenever you open a folder, that requires your processor. When you type into a word document, that also requires your processor. Things like drawing the desktop environment, the windows, and game graphics are the job of your graphics card—which contains hundreds of processors to quickly work on data simultaneously. However, to some extent, they still require your processor as well.

Related: AMD or Intel? Why You Only Have Two Choices When It Comes to Processors

How Does a Processor Core Work?

CPU

The designs of processors are extremely complex and vary widely between companies and models. Processor architectures are constantly being improved to produce the most performance in the least amount of space and energy consumption.

But despite all the architectural differences, processors go through four main steps whenever they process instructions: fetch, decode, execute, and writeback.

Fetch

The fetch step is what you expect it to be. Here, the processor core retrieves instructions that are waiting for it, usually from some sort of memory. This could include RAM, but the instructions are usually already waiting for the core inside the processor cache in modern processor cores.

The processor has an area called the program counter, which essentially acts as a bookmark, letting the processor know where the last instruction ended, and the next one begins.

Decode

Once it has fetched the immediate instruction, it goes on to decode it. Instructions often involve multiple areas of the processor core—such as arithmetic—and the processor core needs to figure this out.

Each part has something called an opcode which tells the processor core what should be done with the information that follows it. Once the processor core has figured this all out, the different areas of the core itself can get to work.

Related: What Is CPU Hyperthreading and How Does It Work?

Execute

The execute step is where the processor knows what it needs to do, and actually goes ahead and does it. What happens here varies depending on the area of the processor core in use and the information put in.

For example, the processor can do arithmetic inside the ALU, or Arithmetic Logic Unit. This unit can connect to different inputs and outputs to crunch numbers and get the desired result.

Writeback

The final step, called writeback, simply places the result of what's been worked on back into memory. Where exactly the output goes depends on the needs of the running application, but it often stays in processor registers for quick access as the following instructions often use it.

It'll get taken care of from there until parts of that output need to be processed once again, which can mean that it goes into the RAM.

It's Just One Cycle

This entire process is called an instruction cycle. These instruction cycles happen ridiculously fast, especially now that we have powerful processors with high frequencies. Additionally, an entire multi-core CPU does this on every core, so data can be crunched roughly as many times faster as your CPU has cores than if it were stuck with only one core of similar performance.

CPUs also have optimized instruction sets hardwired into the circuitry to speed up familiar instructions sent to them. A popular example is SSE.

Related: How to Check If Your CPU or GPU Is Overclocked

CPUs Keep Getting Better

Don't forget that this is a very simple description of how a processor core works. In reality, they are far more complex and take care of more than we realize. The current trend is that processor manufacturers are trying to make their chips as efficient as possible, including shrinking the transistors. This leads to an increased transistor density and better energy consumption.