- 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.
推薦閱讀
- Learning LibGDX Game Development(Second Edition)
- GAE編程指南
- Java面向?qū)ο筌浖_發(fā)
- Apache Mahout Clustering Designs
- 微服務(wù)架構(gòu)深度解析:原理、實(shí)踐與進(jìn)階
- Scratch·愛編程的藝術(shù)家
- Instant jQuery Boilerplate for Plugins
- 玩轉(zhuǎn).NET Micro Framework移植:基于STM32F10x處理器
- Learning Android Application Testing
- jQuery從入門到精通(微課精編版)
- 面向?qū)ο蟪绦蛟O(shè)計(jì)及C++(第3版)
- Instant GLEW
- 3D Printing Designs:Octopus Pencil Holder
- 精益軟件開發(fā)管理之道
- Visual C++程序開發(fā)范例寶典