- 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
推薦閱讀
- 從零開始構建企業級RAG系統
- .NET之美:.NET關鍵技術深入解析
- Python快樂編程:人工智能深度學習基礎
- C語言程序設計案例教程(第2版)
- 高級C/C++編譯技術(典藏版)
- 精通Python設計模式(第2版)
- Asynchronous Android Programming(Second Edition)
- Web前端應用開發技術
- Mastering jQuery Mobile
- Developing Java Applications with Spring and Spring Boot
- Zend Framework 2 Cookbook
- 菜鳥成長之路
- Mastering React Test:Driven Development
- Mastering VMware vSphere Storage
- 寫給所有人的編程思維