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

  • Learning Concurrency in Kotlin
  • Miguel Angel Castiblanco Torres
  • 112字
  • 2021-08-05 10:46:41

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.

主站蜘蛛池模板: 章丘市| 宁津县| 盐山县| 临湘市| 辰溪县| 胶州市| 广平县| 盐源县| 象山县| 凤翔县| 漳浦县| 运城市| 永州市| 神木县| 政和县| 陇西县| 余姚市| 齐河县| 长沙县| 威信县| 突泉县| 临湘市| 安塞县| 阿拉善右旗| 曲麻莱县| 乌拉特中旗| 九江县| 陆河县| 东台市| 黄浦区| 福贡县| 石泉县| 古浪县| 和硕县| 卓尼县| 平果县| 德昌县| 新蔡县| 茌平县| 昌黎县| 白银市|