- Learning Concurrency in Kotlin
- Miguel Angel Castiblanco Torres
- 180字
- 2021-08-05 10:46:41
Putting things together
So far, we have learned that an application is composed of one or more processes and that each process has one or more threads. We have also learned that blocking a thread means halting the execution of the code in that thread, and for that reason, a thread that interacts with a user is expected to never be blocked. We also know that a coroutine is basically a lightweight thread that resides in a thread but is not tied to one. The following diagram encapsulates the content of this section so far. Notice how each coroutine is started in one thread but at some point is resumed in a different one:

In a nutshell, concurrency occurs when an application runs in more than one thread at the same time. So in order for concurrency to happen, two or more threads need to be created, and both communication and synchronization of those threads will most likely be needed for correct functioning of the application.
- 數據結構(Python語言描述)(第2版)
- C語言程序設計
- Hands-On JavaScript High Performance
- Windows Presentation Foundation Development Cookbook
- Swift語言實戰精講
- Selenium Testing Tools Cookbook(Second Edition)
- NGINX Cookbook
- Go語言精進之路:從新手到高手的編程思想、方法和技巧(2)
- Programming with CodeIgniterMVC
- 高效使用Greenplum:入門、進階與數據中臺
- Python Social Media Analytics
- VMware vSphere Design Essentials
- C/C++代碼調試的藝術
- MySQL核心技術與最佳實踐
- C語言從入門到精通(微視頻精編版)