CPUs and architecture
What is the main purpose of pipelining in a CPU?
- ATo divide instruction processing into stages and overlap the stages of different instructions, increasing throughput
- BTo always shorten the execution time (latency) of each instruction
- CTo reduce the number of instructions and make programs smaller
Show answer and explanation
Answer: A. To divide instruction processing into stages and overlap the stages of different instructions, increasing throughput
Pipelining overlaps stages such as fetch, decode, execute and write-back like an assembly line, increasing the number of instructions completed per unit time (throughput). It does not shorten the processing time of each instruction itself, and the flow can be disrupted by branches and data dependencies (hazards).