- Learning Concurrency in Kotlin
- Miguel Angel Castiblanco Torres
- 100字
- 2021-08-05 10:46:42
Concurrency versus parallelism in I/O-bound algorithms
As seen before, I/O-bound algorithms are constantly waiting on something else. This constant waiting allows single-core devices to use the processor to do other useful tasks while waiting. So concurrent algorithms that are I/O-bound will perform similarly regardless of the execution happening in parallel or in a single core.
It is expected that I/O-bound algorithms will always perform better in concurrent implementations than if they are sequential. So it's recommended for I/O operations to be always executed concurrently. As mentioned before, in GUI applications it's particularly important to not block the UI thread.
推薦閱讀
- MATLAB圖像處理超級學習手冊
- The Computer Vision Workshop
- Building a Quadcopter with Arduino
- 青少年信息學競賽
- UVM實戰
- Webpack實戰:入門、進階與調優
- Java EE架構設計與開發實踐
- Android高級開發實戰:UI、NDK與安全
- Mastering OpenStack
- Java 11 and 12:New Features
- SAS編程演義
- SaaS攻略:入門、實戰與進階
- Improving your Penetration Testing Skills
- INSTANT Lift Web Applications How-to
- Python人工智能項目實戰