Questions: CPU Performance Metrics and Amdahl's Law

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

Processor A runs at 4 GHz with an average CPI of 4. Processor B runs at 2 GHz with an average CPI of 1. Both execute the same program with the same instruction count. Which processor is faster?

AProcessor A, because it has a higher clock frequency
BProcessor B, because it has a lower CPI
CProcessor B, which is twice as fast as Processor A
DThey are equally fast because higher frequency cancels lower CPI
Question 2 Multiple Choice

A program spends 90% of its execution time in a routine that you parallelize, achieving a 10× speedup for that portion. What is the maximum overall speedup of the entire program?

A10×, since you sped up the dominant portion by 10×
B9×, since 90% of the work is 10× faster
CApproximately 5.3×, because the remaining 10% now dominates execution time
DApproximately 1.1×, because parallelism introduces overhead
Question 3 True / False

A processor with a higher clock frequency usually executes a given program faster than a processor with a lower clock frequency.

TTrue
FFalse
Question 4 True / False

According to Amdahl's Law, if you could speed up exactly 50% of a program to take zero time, the maximum possible speedup for the whole program is 2×.

TTrue
FFalse
Question 5 Short Answer

Why do benchmark suites like SPEC provide more meaningful performance comparisons than raw MIPS (millions of instructions per second) ratings?

Think about your answer, then reveal below.