- 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.
- Learning C# by Developing Games with Unity 2020
- Java異步編程實戰
- 深入淺出Windows API程序設計:編程基礎篇
- Learn Programming in Python with Cody Jackson
- Python漫游數學王國:高等數學、線性代數、數理統計及運籌學
- INSTANT Django 1.5 Application Development Starter
- Learning ArcGIS for Desktop
- 深入理解Elasticsearch(原書第3版)
- Learning Laravel's Eloquent
- TMS320LF240x芯片原理、設計及應用
- PHP+MySQL動態網站開發從入門到精通(視頻教學版)
- Web程序設計:ASP.NET(第2版)
- Docker:容器與容器云(第2版)
- RESTful Web API Design with Node.js
- 計算機程序的構造和解釋(JavaScript版)