- Mastering Concurrency in Python
- Quan Nguyen
- 182字
- 2021-06-10 19:23:58
Terminology
Amdahl's Law provides a mathematical formula that calculates the potential improvement in speed of a concurrent program by increasing its resources (specifically, the number of available processors). Before we can get into the theory behind Amdahl's Law, first, we must clarify some terminology, as follows:
- Amdahl's Law solely discusses the potential speedup in latency resulting from executing a task in parallel. While concurrency is not directly discussed here, the results from Amdahl's Law concerning parallelism will nonetheless give us an estimation regarding concurrent programs.
- The speed of a program denotes the time it takes for the program to execute in full. This can be measured in any increment of time.
- Speedup is the time that measures the benefit of executing a computation in parallel. It is defined as the time it takes a program to execute in serial (with one processor), divided by the time it takes to execute in parallel (with multiple processors). The formula for speedup is as follows:

In the preceding formula, T(j) is the time it takes to execute the program when using j processors.
推薦閱讀
- UNIX編程藝術(shù)
- Reporting with Visual Studio and Crystal Reports
- Mastering AWS Lambda
- Mastering Articulate Storyline
- iOS開發(fā)實(shí)戰(zhàn):從零基礎(chǔ)到App Store上架
- 基于免疫進(jìn)化的算法及應(yīng)用研究
- Visual Basic程序設(shè)計(jì)教程
- Visual Basic學(xué)習(xí)手冊(cè)
- Python深度學(xué)習(xí):基于TensorFlow
- Swift 4從零到精通iOS開發(fā)
- Java EE企業(yè)級(jí)應(yīng)用開發(fā)教程(Spring+Spring MVC+MyBatis)
- Learning Nessus for Penetration Testing
- Continuous Delivery and DevOps:A Quickstart Guide Second Edition
- 前端架構(gòu)設(shè)計(jì)
- 城市信息模型平臺(tái)頂層設(shè)計(jì)與實(shí)踐