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

Summary

You have now been introduced to the concept of concurrent and parallel programming. It is about designing and structuring programming commands and instructions, so that different sections of the program can be executed in an efficient order, while sharing the same resources. Since time is saved when some commands and instructions are executed at the same time, concurrent programming provides significant improvements in program execution time, as compared to traditional sequential programming.

However, various factors need to be taken into consideration while designing a concurrent program. While there are specific tasks that can easily be broken down into independent sections that can be executed in parallel (embarrassingly parallel tasks), others require different forms of coordination between the program commands, so that shared resources are used correctly and efficiently. There are also inherently sequential tasks, in which no concurrency and parallelism can be applied to achieve program speedup. You should know the fundamental differences between these tasks, so that you can design your concurrent programs appropriately.

Recently, there was a paradigm shift that facilitated the implementation of concurrency into most aspects of the programming world. Now, concurrency can be found almost everywhere: desktop and mobile applications, video games, web and internet development, AI, and so on. Concurrency is still growing, and it is expected to keep growing in the future. It is therefore crucial for any experienced programmer to understand concurrency and its relevant concepts, and to know how to integrate those concepts into their applications.

Python, on the other hand, is one of the most (if not the most) popular programming languages. It provides powerful options in most sub-fields of programming. The combination of concurrency and Python is therefore one of the topics most worth learning and mastering in programming.

In the next chapter, on Amdahl's Law, we will discuss how significant the improvements in speedup that concurrency provides for our programs are. We will analyze the formula for Amdahl's Law, discussing its implications and considering Python examples.

主站蜘蛛池模板: 阿城市| 盖州市| 上杭县| 新绛县| 文成县| 灵山县| 庐江县| 巢湖市| 沙雅县| 深圳市| 青阳县| 丽江市| 仪陇县| 石泉县| 华坪县| 和林格尔县| 天峨县| 金门县| 定西市| 张家界市| 石楼县| 延吉市| 宜宾市| 旬阳县| 盖州市| 丰城市| 乐昌市| 独山县| 凉城县| 故城县| 辽阳县| 成都市| 四子王旗| 启东市| 蒙阴县| 焦作市| 惠州市| 赤水市| 林周县| 玉林市| 襄城县|