- Learning Concurrency in Kotlin
- Miguel Angel Castiblanco Torres
- 68字
- 2021-08-05 10:46:42
Concurrency versus parallelism in CPU-bound algorithms
CPU-bound algorithms will benefit from parallelism but probably not from single-core concurrency. For example, the previous algorithm that takes a list of words and filters the palindromes could be modified so that a thread is created per each 1,000 words received. So, if isPalindrome() receives 3,000 words, the execution could be represented like this:

isPalindrome creating a thread per each 1,000 words
推薦閱讀
- Mastering Concurrency in Go
- Fast Data Processing with Spark(Second Edition)
- 小型編譯器設計實踐
- Visual Studio Code 權威指南
- Instant Debian:Build a Web Server
- Red Hat Enterprise Linux Troubleshooting Guide
- Clean Code in C#
- Advanced UFT 12 for Test Engineers Cookbook
- Training Systems Using Python Statistical Modeling
- 交互式程序設計(第2版)
- SEO教程:搜索引擎優化入門與進階(第3版)
- Mathematica Data Visualization
- Xamarin Mobile Application Development for Android(Second Edition)
- Node.js入門指南
- Abaqus GUI程序開發指南(Python語言)