- 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.
- JavaScript Unlocked
- Banana Pi Cookbook
- Learning ELK Stack
- Mastering Drupal 8 Views
- JAVA程序設計實驗教程
- Building Serverless Applications with Python
- Swift細致入門與最佳實踐
- OpenGL Data Visualization Cookbook
- 輕松上手2D游戲開發:Unity入門
- Mockito Essentials
- Mastering ASP.NET Core 2.0
- Tableau Dashboard Cookbook
- 和孩子一起學編程:用Scratch玩Minecraft我的世界
- 從零開始學UI設計·基礎篇
- LabVIEW數據采集(第2版)