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

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.

主站蜘蛛池模板: 铜山县| 永泰县| 昌都县| 永仁县| 定南县| 汝州市| 天门市| 荣成市| 凉城县| 泸水县| 柘荣县| 普洱| 泾阳县| 高州市| 伊吾县| 明水县| 仁寿县| 长汀县| 博客| 井冈山市| 德昌县| 英吉沙县| 濉溪县| 河源市| 钟山县| 南丹县| 金堂县| 巴青县| 景洪市| 德保县| 玉山县| 临城县| 古交市| 花莲县| 平武县| 友谊县| 寿阳县| 旬阳县| 黎平县| 大埔县| 舟山市|