SHORT ANSWERS: Part A) Program X runs in 78 seconds on machine C1 and in 54 seco
ID: 3890293 • Letter: S
Question
SHORT ANSWERS:
Part A) Program X runs in 78 seconds on machine C1 and in 54 seconds on machine C2. How much faster does program X run on machine C2 than it does on machine C1? (answer should be carried out to 2 decimal places)
Part B) If the clock frequency of machine C2 from the previous question is 900 MHz and the instruction count is 800,000,000, then what is the average number of clock cycles per instruction (CPI) for program X on machine C2? (answer should be carried out to 2 decimal places)
Explanation / Answer
Performancen on machine C1 = 1 / Execution time on C1
= 1/78 =0.013
Performancen on machine C2 = 1 / Execution time on C1
= 1/54 = 0.02
Let us assume Machine C2 is n times faster than C1,
Then, n = performance(c2) / performance(c1)
= 0.02/0.013
= 1.54 times
Therefore C2 is 1.54 times faster than C1.
2) Given frequency = 900 MHz
instruction count= 800,000,000
Then,clock cycle time C = 1/clock rate
= 1/900
Then, CPI = T/(I*C)
= 54*900000000/800,000,000
= 54*9/8
= 60.75
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.