Assume that there is a program with 80% parallel code portion
and 20% sequential code portion. Based on Amdahl’s law, ??????? =
1/(1 − ?(1 −
we use a parallel computer with 8 processors instead of one?
Solution:---------
80% of a program is parallel, then the maximum speedup is 1/(1-0.8)=1/.2=5 times. If the program in question took 10 seconds to run serially, the best we could hope for in a parallel execution would be for it to take 2 seconds (10/5=2). This is because the serial 20% of the program cannot be sped up and it takes .2 x 10 seconds = 2 seconds even if the rest of the code is run perfectly in parallel on an infinite number of processors so it takes 0 seconds to execute.
Get Answers For Free
Most questions answered within 1 hours.