← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 2313.e.5.f.10.a.4.b

并发不等于并行

理解等级:中级

并发是在同一时间段推进多个任务,并行是同时在多个执行资源上运行。多进程可扩展独立工作,多线程可共享进程资源;收益受可分解性、协调和瓶颈约束。原书把并发直接定义为同时执行,本卡明确二者边界。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Design for Speed and Efficiency · 查看原书依据

      Concurrency is the ability to execute multiple tasks simultaneously. By leveraging concurrency, distributed systems can achieve better performance and utilize system resources more efficiently. Concurrency can be applied at different levels, such as process-level concurrency and thread-level concurrency.

    参考来源

    - 位置:《Building Distributed Systems Designing scalable architectures with microservices, event-driven patterns, and robust deployment…》第05章《Design for Speed and Efficiency》(来源项目book-sources;源文件:extracted/Building Distributed Systems Designing scalable architectures with microservices, event-driven patterns, and robust deployment…/_epub-src/OPS/ch05.xhtml) - 结论依据:原文给出本卡对应定义或示例;并发是在同一时间段推进多个任务,并行是同时在多个执行资源上运行。 对原文省略和过度承诺的限定是本卡显式纠正,不能反过来当作原书已证明。 - 原始内容:Concurrency is the ability to execute multiple tasks simultaneously. By leveraging concurrency, distributed systems can achieve better performance and utilize system resources more efficiently. Concurrency can be applied at different levels, such as process-level concurrency and thread-level concurrency.