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

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.

主站蜘蛛池模板: 吕梁市| 建始县| 马尔康县| 马鞍山市| 乌拉特后旗| 海丰县| 宿迁市| 阳原县| 仁化县| 辽阳县| 永德县| 封丘县| 桐梓县| 阿克陶县| 逊克县| 上虞市| 商丘市| 甘孜县| 称多县| 基隆市| 井陉县| 安宁市| 永嘉县| 余江县| 邯郸县| 岫岩| 精河县| 凤庆县| 惠东县| 青浦区| 循化| 南靖县| 滨海县| 松原市| 汾西县| 千阳县| 施秉县| 邹平县| 灵璧县| 西吉县| 额尔古纳市|