Machine A runs at 2 GHz with CPI 2; machine B runs at 3 GHz with CPI 2.5 on the same program and instruction count. Which statement is correct?

Correct answer B. B is 1.2 times faster than A

Explanation

Time per instruction is CPI / clock rate: A takes 2 / 2 GHz = 1.0 ns and B takes 2.5 / 3 GHz ≈ 0.833 ns. The ratio 1.0 / 0.833 = 1.2, so B is 1.2 times faster. Comparing clock rates alone (3 / 2 = 1.5) ignores B's higher CPI. Clock speed is only meaningful together with CPI and instruction count.

Report a problem

Answer checked How we write and check questions

Tip: press A, B, C or D to answer, and N for the next question.

Advertisement

Have a question about this answer?

Your email address will not be published. Required fields are marked *

Links and website addresses are not allowed in comments.