并发编程沉思录--并发编程是什么-Concurrency
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、并发编程的目标是保证结果的一致性和提高利率;
并发编程世界观:
任务:可分解吗?流水线吗?组装吗?货物拉取型?
资源:任务有基于自愿的相互依赖吗?
任务和资源决定模型;
底层支持:
并发控制
并发模型
并发编程是分工模型;