Question: We have two computers P1 and P2. The following is the breakdown of two programs A and B. Operation A B P1 CPI P2 CPI
We have two computers P1 and P2. The following is the breakdown of two programs A and B.
| Operation | A | B | P1 CPI | P2 CPI |
| Load/store | 30% | 50% | 2 | 2 |
| ALU | 60% | 20% | 1 | 2 |
| Branch | 10% | 30% | 3 | 2 |
a) P1 has a 2Ghz speed. What is the execution time if A runs for 300 instructions? What is the execution time if B runs for 500?
b) P1 has a 2Ghz speed. What does the clock rate for P2 so that both computers take the same time to run for program A.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
