知识卡片
串行部分限制并行收益
Amdahl定律关注不可并行部分:如果一半执行工作必须串行,即使无限增加并行执行者,总体最多约快两倍。大锁会把大量工作串起来,增加线程并不能绕过这段限制。应先减少串行与阻塞范围,再评估分工收益;本卡依据原文锁示例,不采用排印方向相反的Speedup分数式。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 理解性能的心智模型 · 查看原书依据
For example, if you have an exclusive lock covering all the programs, only one thread runs, irrespective of the other code. If you have a lock covering 50% of the program, then the maximum speedup possible is twice as fast, regardless of the number of threads in the system. Amdahl’s law suggests that the best solution is not to use blocking synchronization at all.
参考来源
- 位置:《Software Architecture and Decision-Making》第3章《理解性能的心智模型》(来源项目:book-sources;源文件:extracted/Software Architecture and Decision-Making Leveraging Leadership, Technology, and Product Management to Build Great Products… (Srinath Perera)/_epub-src/ch03.xhtml)
- 结论依据:原文的定义、比较或例子支持“Amdahl定律关注不可并行部分:如果一半执行工作必须串行,即使无限增加并行执行者,总体最多约快两倍”;正文据此说明用途和边界。
- 原始内容:For example, if you have an exclusive lock covering all the programs, only one thread runs, irrespective of the other code. If you have a lock covering 50% of the program, then the maximum speedup possible is twice as fast, regardless of the number of threads in the system. Amdahl’s law suggests that the best solution is not to use blocking synchronization at all.