知识卡片
并发组织不等于并行
并发讨论程序如何由可独立执行的部分组成;并行讨论它们是否同时执行。goroutine和通道便于组织独立活动及通信,即使只有一个执行核心也能表达并发。把并发结构写出来,不代表耗时必然缩短,也不保证调度顺序。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Why Go Rules the Cloud Native World · 查看原书依据
Parallelism describes the simultaneous execution of multiple independent processes. Concurrency describes the composition of independently executing processes; it says nothing about when processes will execute. Fast Builds One of the primary motivations for the Go language was the maddeningly long build times for certain languages of the time10, which even on Google’s large compilation clusters
参考来源
- 位置:《Cloud Native Go》第02章《Why Go Rules the Cloud Native World》(来源项目book-sources;源文件:extracted/Cloud Native Go (Matthew A. Titmus)/_epub-src/OEBPS/ch02.xhtml)
- 结论依据:并发讨论程序如何由可独立执行的部分组成;并行讨论它们是否同时执行。原文相应定义、示例或限制为此结论提供依据;补充纠错与版本边界在正文就近标明。
- 原始内容:Parallelism describes the simultaneous execution of multiple independent processes. Concurrency describes the composition of independently executing processes; it says nothing about when processes will execute. Fast Builds One of the primary motivations for the Go language was the maddeningly long build times for certain languages of the time10, which even on Google’s large compilation clusters