Last Updated : 26 Dec, 2018

A computer has the following CPIs for instruction types A, B, C, D, and a program P3 has the following mix of instructions

Instruction Type CPI
A 1.7
B 2.1
C 2.7
D 2.4


Instruction Type frequency
A 22
B 29
C 17
D remaining percent

What will be the average CPI for given computer system
(A) 2.21
(B) 3.6
(C) 1.57
(D) 2.4


Answer: (A)

Explanation: Average CPI = Σ(CPIi + ICi)
= (1.7 * 0.22 + 2.1 * 0.29 + 2.7 * 0.17 + 2.4 * 0.32)
= 2.21
SO, option (A) is correct.


Quiz of this Question


Share your thoughts in the comments