Mastering Concurrency in Python
上QQ阅读APP看书,第一时间看更新

A quick example

Let's assume that we have a computer program, and the following applies to it:

  • 40% of it is subject to parallelism, so B = 1 - 40% = 0.6
  • Its parallelizable parts will be processed by four processors, so j = 4

Amdahl's Law states that the overall speedup of applying the improvement will be as follows: