- 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.
- 新一代通用視頻編碼H.266/VVC:原理、標準與實現
- Linux核心技術從小白到大牛
- Software Testing using Visual Studio 2012
- Backbone.js Blueprints
- FFmpeg入門詳解:音視頻原理及應用
- Python時間序列預測
- Python之光:Python編程入門與實戰
- Creating Stunning Dashboards with QlikView
- App Inventor創意趣味編程進階
- Access 2010數據庫應用技術實驗指導與習題選解(第2版)
- PHP與MySQL權威指南
- C指針原理揭秘:基于底層實現機制
- Android Game Programming by Example
- CodeIgniter Web Application Blueprints
- Modular Programming with JavaScript