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

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.

主站蜘蛛池模板: 望江县| 天柱县| 洮南市| 舞阳县| 辽阳县| 达日县| 桂平市| 海南省| 吴江市| 大同县| 瓮安县| 柘荣县| 曲靖市| 瑞昌市| 安岳县| 天门市| 炎陵县| 许昌县| 华宁县| 江川县| 沾益县| 清流县| 辰溪县| 乌兰县| 盐源县| 临夏市| 泾源县| 湄潭县| 蕉岭县| 茌平县| 南汇区| 屯留县| 大城县| 吉木萨尔县| 黎城县| 托里县| 抚顺县| 河北区| 贵德县| 新乡市| 孟州市|