← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 10648 · 生成模型:未记录

并发与并行的侧重点

理解等级:初级

并发表示若干任务独立推进。单核机器仍可通过调度交替执行并发任务。并行强调有多个任务同一时刻实际运行,多个处理器可以提供这种能力。拆分成线程带来独立运行的机会,具体运行次序由调度决定。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 无畏并发 Using Threads to Run Code Simultaneously · 查看原书依据

      Handling concurrent programming safely and efficiently is another of Rust’s major goals. Concurrent programming, in which different parts of a program execute independently, and parallel programming, in which different parts of a program execute at the same time, are becoming increasingly important as more computers take advantage of their multiple processors. Historically, programming in these contexts has been difficult and error prone. Rust hopes to change that.

    参考来源

    - 位置:《The Rust Programming Language(第2版)》第16章 无畏并发(来源项目 a19c7933-4eda-4176-aebd-30fe7e1ad292,`extracted/The Rust Programming Language(第2版)/_epub-src/c16.xhtml`,块 0003) - 结论依据:开篇分别给出独立执行和同时执行的定义,并联系多处理器。 - 原始内容:Handling concurrent programming safely and efficiently is another of Rust’s major goals. Concurrent programming, in which different parts of a program execute independently, and parallel programming, in which different parts of a program execute at the same time, are becoming increasingly important as more computers take advantage of their multiple processors. Historically, programming in these contexts has been difficult and error prone. Rust hopes to change that.