- Mastering Concurrency in Python
- Quan Nguyen
- 371字
- 2021-06-10 19:23:59
Implications
The following is a quote from Gene Amdahl, in 1967:
Through the quote, Amdahl indicated that whatever concurrent and parallel techniques are implemented in a program, the sequential nature of the overhead portion required in the program always sets an upper boundary on how much speedup the program will gain. This is one of the implications that Amdahl's Law further suggests. Consider the following example:
denotes the speedup gained from n processors
This shows that, as the number of resources (specifically, the number of available processors) increases, the speedup of the execution of the whole task also increases. However, this does not mean that we should always implement concurrency and parallelism with as many system processors as possible, to achieve the highest performance. In fact, from the formula, we can also gather that the speedup achieved from incrementing the number of processors decreases. In other words, as we add more processors for our concurrent program, we will obtain less and less improvement in execution time.
Furthermore, as mentioned previously, another implication that Amdahl's Law suggests concerns the upper limit of the execution time improvement:
is the cap of how much improvement concurrency and parallelism can offer your program. This is to say that, no matter how many available resources your system has, it is impossible to obtain a speedup larger than
through concurrency, and this limit is dictated by the sequential overhead portion of the program (B is the fraction of the program that is strictly serial).
- JBoss Weld CDI for Java Platform
- 零基礎PHP學習筆記
- Developing Mobile Web ArcGIS Applications
- MATLAB圖像處理超級學習手冊
- JavaScript 網頁編程從入門到精通 (清華社"視頻大講堂"大系·網絡開發視頻大講堂)
- Building Minecraft Server Modifications
- Oracle JDeveloper 11gR2 Cookbook
- 劍指Java:核心原理與應用實踐
- Java高并發核心編程(卷1):NIO、Netty、Redis、ZooKeeper
- 基于ARM Cortex-M4F內核的MSP432 MCU開發實踐
- 小程序,巧應用:微信小程序開發實戰(第2版)
- 小型編譯器設計實踐
- 編寫高質量代碼:改善Objective-C程序的61個建議
- PHP+MySQL Web應用開發教程
- Mastering ArcGIS Server Development with JavaScript