An enhancement makes 40% of a program’s execution time run twice as fast. What is the overall speedup?

Correct answer B. 1.25

Explanation

New time = 0.6 + 0.4 / 2 = 0.8 of the original, so speedup = 1 / 0.8 = 1.25. The answer 2.0 assumes the whole program is improved, and 1.4 simply adds 40% to 1. Amdahl's law applies to any enhancement, not just parallelism: the gain is limited by the fraction of time that actually uses the improved part.

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.