I***a 发帖数: 704 | 1 1.14 [10/10/20/20] <1.10> Your company has just bought a new dual Pentium
processor,
and you have been tasked with optimizing your software for this processor.
You will run two applications on this dual Pentium, but the resource
requirements
are not equal. The first application needs 80% of the resources, and the
other only
20% of the resources.
a. [10] <1.10> Given that 40% of the first application is parallelizable,
how
much speedup would you achieve with that application if run in isolation?
b. [10] <1.10> Given that 99% of the second application is parallelizable,
how
much speedup would this application observe if run in isolation?
c. [20] <1.10> Given that 40% of the first application is parallelizable,
how
much overall system speedup would you observe if you parallelized it?
d. [20] <1.10> Given that 99% of the second application is parallelizable,
how
much overall system speedup would you get? | s***m 发帖数: 336 | 2 a.Amdahl's law:
1 / (0.6+0.4/2) = 1.25
b. 1 / (0.01 + 0.99/2) = 1.98
c. 1/(0.2+0.8*(0.6+0.4/2)) = 1.19
d. 1/(0.8 + 0.2*(0.01+0.99/2)) = 1.11 |
|