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

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.

主站蜘蛛池模板: 洛川县| 灵丘县| 湖北省| 开封县| 建湖县| 思南县| 清苑县| 利辛县| 白水县| 玉屏| 化州市| 嘉义市| 怀安县| 乌兰察布市| 女性| 海城市| 建德市| 安吉县| 即墨市| 纳雍县| 双桥区| 苍溪县| 利辛县| 山东| 惠安县| 长宁区| 五大连池市| 吕梁市| 札达县| 邵阳县| 惠来县| 获嘉县| 商都县| 瑞丽市| 资溪县| 杭锦后旗| 长阳| 南雄市| 铁岭县| 海伦市| 云南省|