Help me please It took 25 seconds (CPU time) to run a program on computer A. 10,
ID: 3784755 • Letter: H
Question
Help me please
It took 25 seconds (CPU time) to run a program on computer A. 10,000 instructions were executed for this program and the CPI is 1.4. The program is recompiled on another computer B, whose clock rate is 1.5 times faster than computer A. The new program had 12,000 instructions executed on B and the CPI is 1.2. How much time was used to run the program on B? From the following data determine what is the CPI for each program? Calculate CPU each program if the clock rate is 6GHz M: m on instructions.Explanation / Answer
Q1.) we know, CPU time = CPI * Instruction Count * (1/Clock rate)
given:
(CPU time)A = 25 seconds; CPIA = 1.4; I = 10000;
now, 25 = 1.4*10000*(1/clock rate)
(clock rate)A = 14000/25 = 560 Hz
Now, given (clock rate)B = 1.5 * (clock rate)A = 1.5 * 560 = 840 Hz
Now, (CPU time)B = CPIB * Instruction CountB * (1/Clock rate)B
= 1.2 * 12000 * (1/840) = 17.14 sec
Hope it helps. Do give your feedback.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.