- 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.
推薦閱讀
- 自然語言處理實戰:預訓練模型應用及其產品化
- Delphi程序設計基礎:教程、實驗、習題
- CMDB分步構建指南
- What's New in TensorFlow 2.0
- Blockly創意趣味編程
- 鋒利的SQL(第2版)
- 編程數學
- Building RESTful Python Web Services
- Node Cookbook(Second Edition)
- Orchestrating Docker
- C++ Application Development with Code:Blocks
- ActionScript 3.0從入門到精通(視頻實戰版)
- After Effects CC技術大全
- Mastering Leap Motion
- 編程的原則:改善代碼質量的101個方法