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

PLease Explain? You have an important program to execute and you want to minimiz

ID: 3542808 • Letter: P

Question

PLease Explain?

You have an important program to execute and you want to minimize its run time. You have a choice between two 800 MHz processors i.e. both processors have a cycle time of 1.25 ns. Here are the other specs for the processor and it's compiler, on your application: Option A: This option has a processor with a CPI of 0.5 and a compiler requiring your program to execute 1 million instructions. Option B: This option has a processor with a CPI of 0.6 and a compiler requiring your program to execute 750 thousand instructions. Which of these two options do you select and why?

Explanation / Answer

execution time = Instruction count * CPI * cycle time

so for A exec time = 10^6 * 0.5 = 5,00,000

for B exec.time = 0.6 * 750000 = 4,50,000

execution time of B < exec.time of aA

choose B


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