- 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.
推薦閱讀
- Modular Programming in Java 9
- Jupyter數(shù)據(jù)科學(xué)實(shí)戰(zhàn)
- Learning Unity 2D Game Development by Example
- Building RESTful Python Web Services
- 區(qū)塊鏈底層設(shè)計(jì)Java實(shí)戰(zhàn)
- Solr Cookbook(Third Edition)
- INSTANT Adobe Edge Inspect Starter
- JavaScript程序設(shè)計(jì)(第2版)
- 深入理解BootLoader
- Elasticsearch搜索引擎構(gòu)建入門與實(shí)戰(zhàn)
- Oracle SOA Suite 12c Administrator's Guide
- Distributed Computing with Python
- Mastering JavaScript Promises
- 歐姆龍PLC編程指令與梯形圖快速入門
- 開發(fā)者測(cè)試