An ideal 5-stage pipeline with equal stage delays and no stalls executes 100 instructions. What is the speedup over a non-pipelined design?
Correct answer B. About 4.81
Explanation
With k stages and n instructions the pipeline needs k + n - 1 cycles versus n x k without pipelining, so speedup = nk / (k + n - 1) = 500 / 104 ≈ 4.81. It approaches but never reaches 5 because the first instruction must still pass through all stages while the pipeline fills. Exactly 5 is only the limit as n grows very large.
Answer checked How we write and check questions
Discussion