forked from unknwon/the-way-to-go_ZH_CN
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
52 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
|
||
## 翻译进度 | ||
|
||
13.10 [性能调试:分析并优化 Go 程序](eBook/13.10.md) | ||
14.1 [并发、并行和协程](eBook/14.1.md) | ||
|
||
## 支持本书 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
# 14 协程(goroutine)与通道(channel) | ||
|
||
作为一门21世纪的语言,Go 原生支持应用之间的通信(网络,客户端和服务端,分布式计算,参见 15 章)和程序的并发。程序可以在不同的处理器和计算机上同时执行不同的代码段。Go 语言为构建并发程序的基本代码块是 协程 (goroutine) 与通道 (channel)。他们需要语言,编译器,和runtime的支持。Go 语言提供的垃圾回收器对并发编程至关重要。 | ||
作为一门 21 世纪的语言,Go 原生支持应用之间的通信(网络,客户端和服务端,分布式计算,参见第 15 章)和程序的并发。程序可以在不同的处理器和计算机上同时执行不同的代码段。Go 语言为构建并发程序的基本代码块是 协程 (goroutine) 与通道 (channel)。他们需要语言,编译器,和runtime的支持。Go 语言提供的垃圾回收器对并发编程至关重要。 | ||
|
||
*不要通过共享内存来通信,而通过通信来共享内存。* | ||
**不要通过共享内存来通信,而通过通信来共享内存。** | ||
|
||
通信强制协作。 | ||
|
||
## 链接 | ||
|
||
- [目录](directory.md) | ||
- 上一节:[性能调试:分析并优化 Go 程序](13.10.md) | ||
- 下一节:[并发,并行和协程](14.1.md) | ||
- 下一节:[并发、并行和协程](14.1.md) |
Oops, something went wrong.