Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

You have two processors, one with a three stag e pipeline and one with an eight.

ID: 3884456 • Letter: Y

Question

You have two processors, one with a three stag

e pipeline and one with an eight. The one with

the long pipeline has a clock speed tw

ice as fast as the one with th

e short. In both cases, the last

stage of the pipeline is “execute.”

If the program consists of nothing but a loop adding a number to a running sum (an accumulate

function), which will complete the job faster

? Explain your answer. Assume the loop is non-

infinite and the destination is big eno

ugh to hold the final sum without error.

Explanation / Answer

One with 8 stage pipelines will complete job faster. As it has twice clock speed and 8 stage pipelines, it will complete job faster.

Speedup due to pipelinestages as compared to 3 staged = 2.67 times

And speed up due to clock speed = 2 times.

Hence, It is 5.34 times faster than 3 staged pipeline.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote