官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 通道| 河间市| 财经| 曲周县| 和龙市| 济阳县| 宿迁市| 宝清县| 策勒县| 三台县| 鹰潭市| 太谷县| 灵台县| 通许县| 枣强县| 华池县| 仙桃市| 休宁县| 乌审旗| 公安县| 瓦房店市| 永登县| 焦作市| 家居| 东乡| 县级市| 临泉县| 噶尔县| 赞皇县| 巨野县| 蒙山县| 东兴市| 罗源县| 泌阳县| 阳山县| 天柱县| 改则县| 马尔康县| 泸水县| 通河县| 射阳县|