- Mastering Concurrency in Python
- Quan Nguyen
- 192字
- 2021-06-10 19:24:00
Summary
Amdahl's Law offers us a method to estimate the potential speedup in execution time of a task that we can expect from a system when its resources are improved. It illustrates that, as the resources of the system are improved, so is the execution time. However, the differential speedup when incrementing the resources strictly decreases, and the throughput speedup is limited by the sequential overhead of its program.
You also saw that in specific situations (namely, when only the number of processors increases), Amdahl's Law resembles the law of diminishing returns. Specifically, as the number of processors increases, the efficiency gained through the improvement decreases, and the speedup curve flattens out.
Lastly, this chapter showed that improvement through concurrency and parallelism is not always desirable, and detailed specifications are needed for an effective and efficient concurrent program.
With more knowledge of the extent to which concurrency can help to speed up our programs, we will now start to discuss the specific tools that Python provides to implement concurrency. Specifically, we will consider one of the main players in concurrent programming, threads, in the next chapter, including their application in Python programming.
- JavaScript 從入門到項目實踐(超值版)
- Learning Linux Binary Analysis
- C#程序設計基礎:教程、實驗、習題
- Java Web程序設計任務教程
- 劍指MySQL:架構、調優與運維
- ElasticSearch Cookbook(Second Edition)
- Java網絡編程實戰
- MySQL程序員面試筆試寶典
- 3ds Max印象 電視欄目包裝動畫與特效制作
- Java EE架構設計與開發實踐
- Java多線程并發體系實戰(微課視頻版)
- Python高性能編程(第2版)
- Developer,Advocate!
- Python Django Web從入門到項目實戰(視頻版)
- Image Processing with ImageJ(Second Edition)