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

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.

主站蜘蛛池模板: 稷山县| 古交市| 克东县| 阳高县| 伊宁县| 海丰县| 呼伦贝尔市| 广平县| 洛川县| 金华市| 北安市| 吉木乃县| 寿宁县| 桐乡市| 凤凰县| 应用必备| 厦门市| 南漳县| 云梦县| 黄冈市| 永嘉县| 鹤山市| 崇州市| 错那县| 府谷县| 甘谷县| 鄂温| 磐石市| 临夏县| 小金县| 双流县| 固安县| 于田县| 吴旗县| 漯河市| 柘荣县| 古交市| 吴堡县| 河南省| 深泽县| 白朗县|