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
How it works, step by step
- Split execution into stages
- Start a new instruction each cycle
- Resolve hazards
- Scale out to multiple cores or GPU threads
Open the interactive page with diagrams →
People behind it
- Gene Amdahl
- John Hennessy
- David Patterson
- Seymour Cray
References
- G. M. Amdahl, AFIPS Conf. Proc. 1967, 30, 483–485.
Textbooks
- Computer Organization and Design, David A. Patterson, John L. Hennessy (Morgan Kaufmann, RISC-V ed., 2nd ed. 2020). Standard computer architecture text.
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