Question: Assume Program 1 and Program 2 running on the same computer to solve the same problem. The following table shows the CPI ( clocks per

Assume Program 1 and Program 2 running on the same computer to solve the same problem. The following table shows the CPI (clocks per instruction) and IC (instruction count) of Program 1 and Program 2 for four instruction types A,B, and C.
\table[[Instruction Type,Type A,Type B,Type C],[CPI for Instr. Type,3,4,5],[IC in Program 1,10,20,20],[IC in Program 2,5,x=30,15]]
(a)8% Calculate the average CPI for Program. Give your derivation.
(b)[8%] Assume Program 2 has the same execution time as Program 1 What is x in the table? Give your calculation.
 Assume Program 1 and Program 2 running on the same computer

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!