Fetch-execute cycle

The fetch-execute cycle (or fetch-decode-execute cycle) is the way that a processor executes a program’s instructions.

The cycle has three main stages:

  1. Fetch data from memory
  2. Decode the instruction
  3. Execute the instruction

Fetch

Decode

Execute

How frequently does this happen?

Processors have a clock that ticks at a certain frequency (measured in hertz). Each tick of the clock represents one cycle, and during each cycle, the processor can carry out one fetch-decode-execute cycle. So, if a processor has a clock speed of 3 GHz, it can carry out 3 billion fetch-decode-execute cycles per second!

Look at the clock speed to see how quickly it does the fetch-execute cycle.