gopl-zh.github.com/ch9/ch9-08.md
2016-01-08 18:16:07 +08:00

426 B
Raw Blame History

9.8. Goroutines和線程

在上一章中我们说goroutine和操作系统的线程区别可以先忽略。尽管两者的区别实际上只是一个量的区别但量变会引起质变的道理同样适用于goroutine和线程。现在正是我们来区分开两者的最佳时机。

{% include "./ch9-08-1.md" %}

{% include "./ch9-08-2.md" %}

{% include "./ch9-08-3.md" %}

{% include "./ch9-08-4.md" %}