摘录


If you are new to the Go programming language, or if the sentence "Concurrency is not parallelism" means nothing to you, then check out Rob Pike's excellent talk on the subject. Its 30 minutes long, and I guarantee that watching it is 30 minutes well spent.

To summarize the difference - "when people hear the word concurrency they often think of parallelism, a related but quite distinct concept. In programming, concurrency is the composition of independently executing processes, while parallelism is the simultaneous execution of (possibly related) computations. Concurrency is about dealing with lots of things at once. Parallelism is about doing lots of things at once." 1

点评

入门级介绍。我比较好奇协程是如何切换的?

原文

点击这里查看原文

其它

本帖内容由21QA云收藏工具自动生成,欢迎使用。

系统消息 若觉得内容不错,请点击左上角的"赞"图标,以优化网站的内容呈现。 另外,请及时验证注册邮箱,否则收不到21QA发出的红包。 官方Q群:250203055

asked 29 Jun '16, 10:35

%E8%B7%AF%E4%BA%BA%E7%94%B2's gravatar image

路人甲
131528584621


看这个链接就可以知道其内幕了

系统消息 若觉得内容不错,请点击左上角的"赞"图标,以优化网站的内容呈现。 另外,请及时验证注册邮箱,否则收不到21QA发出的红包。 官方Q群:250203055
permanent link

answered 29 Jun '16, 10:59

%E8%B7%AF%E4%BA%BA%E7%94%B2's gravatar image

路人甲
131528584621

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link: [text](http://url.com/ "title")
  • image: ![alt](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×752
×19

question asked: 29 Jun '16, 10:35

question was seen: 940 times

last updated: 29 Jun '16, 10:59

powered by O*S*Q*A

粤ICP备14040061号-1