官术网_书友最值得收藏!

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:

Difference between concurrent and sequential programs

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.

主站蜘蛛池模板: 仲巴县| 苗栗市| 策勒县| 右玉县| 永和县| 新巴尔虎左旗| 广西| 达日县| 连云港市| 海原县| 大余县| 太仆寺旗| 吐鲁番市| 龙胜| 大丰市| 陵川县| 竹北市| 方城县| 建湖县| 新安县| 绩溪县| 南投县| 黔南| 炉霍县| 望都县| 城固县| 富源县| 孝义市| 肇州县| 敦化市| 周口市| 海安县| 周口市| 虹口区| 邹平县| 时尚| 县级市| 普定县| 安康市| 梅河口市| 思南县|