zoukankan      html  css  js  c++  java
  • 并发编程沉思录--并发编程是什么

    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、并发编程的目标是保证结果的一致性和提高利率;

     

    并发编程世界观:

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

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

    任务和资源决定模型;

     

    底层支持:

    并发控制

    并发模型

     

    并发编程是分工模型;

     

  • 相关阅读:
    GitHub Android Libraries Top 100 简介
    GitHub Top 100 的项目(iOS)
    iOS 学习资源
    HTTP和GET/POST请求(NSURLConnection)
    RunLoop
    HTML5 拖放
    网络安全与加密
    Cocoapods的安装
    iOS中的单例模式
    SDWebImage
  • 原文地址:https://www.cnblogs.com/feng9exe/p/10744150.html
Copyright © 2011-2022 走看看