- 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.
推薦閱讀
- 一步一步學(xué)Spring Boot 2:微服務(wù)項目實戰(zhàn)
- GraphQL學(xué)習(xí)指南
- The Data Visualization Workshop
- Mastering RStudio:Develop,Communicate,and Collaborate with R
- Windows Forensics Cookbook
- SQL Server從入門到精通(第3版)
- C語言程序設(shè)計上機指導(dǎo)與習(xí)題解答(第2版)
- Active Directory with PowerShell
- HTML5秘籍(第2版)
- GitHub入門與實踐
- 人工智能算法(卷1):基礎(chǔ)算法
- IPython Interactive Computing and Visualization Cookbook
- Dart:Scalable Application Development
- Learning Swift
- Visual C++ 開發(fā)從入門到精通