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

CPU l) It took 25 seconds (CPU time) to run a program on computer A. instruction

ID: 3785476 • Letter: C

Question

CPU l) It took 25 seconds (CPU time) to run a program on computer A. instructions 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? Code Rate 2) From the following data determine i) what is the CPI for each program? ii) Calculate CPU each program if the clock rate is 6GHz B C D Instructions A CPI Programs 1M 2M 1M 2M 1M. P1 2M 3M 1M 2M P2 1M 1M 4M P3 M: m on instructions. Cocks

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.

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