Study Atlas › Computer Science › Computer architecture

Pipelining and parallel processors

Overlapping instruction stages and running many cores or threads to increase throughput.

Edited by Alex C, EduAlx · Sources cited below

Explanation

A classic 5-stage RISC pipeline: fetch, decode, execute, memory, write-back. Hazards (data, control, structural) are handled by forwarding, stalls and branch prediction. Amdahl's law limits speedup: S = 1/((1–p) + p/n). GPUs run thousands of threads for data-parallel work such as graphics and AI.

Example

If 90% of a program parallelises, 10 cores give at most about 5.3× speedup.

How it works, step by step

  1. Split execution into stages
  2. Start a new instruction each cycle
  3. Resolve hazards
  4. Scale out to multiple cores or GPU threads

Open the interactive page with diagrams →

People behind it

References

  1. G. M. Amdahl, AFIPS Conf. Proc. 1967, 30, 483–485.

Textbooks

Related topics

Boolean logic and digital circuitsMemory hierarchy and cachesVon Neumann architectureFile systems and storageVirtualisation and containersAutomata and formal languagesCloud computingString algorithms and pattern matchingDistributed systems: CAP theorem and consensusGreedy algorithms and minimum spanning trees