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

CPU-bound and I/O-bound

Bottlenecks are the most important thing to understand when it comes to optimizing the performance of applications, because they will indicate the points in which any type of throttling occurs. In this section we will talk about how concurrency and parallelism can affect the performance of an algorithm based on whether it's bound to the CPU or to I/O operations.

You aren't always going to need or even benefit from writing concurrent code. Understanding the bottlenecks of your code, how threads and coroutines work, and the differences between concurrency and parallelism is required to be able to make a correct assessment of when and how to implement concurrent software.

主站蜘蛛池模板: 德格县| 宝清县| 黄梅县| 徐汇区| 温宿县| 临汾市| 濉溪县| 安徽省| 丽水市| 东平县| 娄烦县| 太仆寺旗| 阿拉善右旗| 宁海县| 阜平县| 永济市| 乌苏市| 昌江| 岳阳市| 友谊县| 资源县| 汝城县| 通州区| 安乡县| 西吉县| 澎湖县| 临高县| 河津市| 崇仁县| 宾川县| 盱眙县| 清远市| 敦煌市| 定远县| 东兴市| 息烽县| 原平市| 衡阳市| 吉木萨尔县| 永泰县| 浪卡子县|