- Mastering Concurrency in Python
- Quan Nguyen
- 129字
- 2021-06-10 19:23:53
Concurrent versus sequential
Perhaps the most obvious way to understand concurrent programming is to compare it to sequential programming. While a sequential program is in one place at a time, in a concurrent program, different components are in independent, or semi-independent, states. This means that components in different states can be executed independently, and therefore at the same time (as the execution of one component does not depend on the result of another). The following diagram illustrates the basic differences between these two types:
One immediate advantage of concurrency is an improvement in execution time. Again, since some tasks are independent and can therefore be completed at the same time, less time is required for the computer to execute the whole program.
- Facebook Application Development with Graph API Cookbook
- Android應用程序開發與典型案例
- INSTANT OpenCV Starter
- Redis Applied Design Patterns
- Docker進階與實戰
- Building Mapping Applications with QGIS
- 高級語言程序設計(C語言版):基于計算思維能力培養
- MySQL從入門到精通(軟件開發視頻大講堂)
- OpenCV with Python By Example
- Fastdata Processing with Spark
- Mudbox 2013 Cookbook
- 30天學通C#項目案例開發
- Java EE輕量級解決方案:S2SH
- 現代C++語言核心特性解析
- Swift 2 Design Patterns