- 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.
推薦閱讀
- Spring 5.0 By Example
- C程序設計簡明教程(第二版)
- C語言最佳實踐
- Mastering Python Networking
- 低代碼平臺開發實踐:基于React
- Java Web開發就該這樣學
- 智能搜索和推薦系統:原理、算法與應用
- CRYENGINE Game Development Blueprints
- Image Processing with ImageJ
- 深度學習原理與PyTorch實戰(第2版)
- JavaScript編程精解(原書第2版)
- SAP Web Dynpro for ABAP開發技術詳解:基礎應用
- Web開發的平民英雄:PHP+MySQL
- Swift Essentials(Second Edition)
- Android開發權威指南(第二版)