首页 > 其他 > 详细

并发编程沉思录

时间:2019-04-21 11:06:19      阅读:120      评论:0      收藏:0      [点我收藏+]

In computer science, concurrency refers to the ability of different parts or units of a program, algorithm, or problem to be executed out-of-order or in partial order, without affecting the final outcome. This allows for parallel execution of the concurrent units, which can significantly improve overall speed of the execution in multi-processor and multi-core systems. In more technical terms, concurrency refers to the decomposability property of a program, algorithm, or problem into order-independent or partially-ordered components or units.[1]

 https://en.wikipedia.org/wiki/Concurrency_(computer_science)

 

多任务并发,输出一致的结果。

 

1、并发编程是面向task和事务的编程;

2、并发编程的核心是协调资源:计算、内存、io;

3、并发编程模型;

4、并发编程的目标是保证结果的一致性和提高利率;

 

并发编程世界观:

任务:可分解吗?流水线吗?组装吗?货物拉取型?

资源:任务有基于自愿的相互依赖吗?

任务和资源决定模型;

 

底层支持:

并发控制

并发模型

 

并发编程是分工模型;

 

并发编程沉思录

原文:https://www.cnblogs.com/feng9exe/p/10744150.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!