> For the complete documentation index, see [llms.txt](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/09.0/09.8.md).

# 09.8 本章小结

在这章里，您了解到了许多 Go 的独特功能，包括 goroutines，通道和管道。另外，您学到了使用 `sync` 包提供的功能来给 goroutines 提供足够的时间去完成它们的任务。最后，您了解到了通道可以作为函数的参数。这允许开发者创建数据流管道。

下章将通过介绍 `select` 关键字来继续讨论 Go 的并发。这个关键字可以让通道执行许多有趣的任务，我想您会真正的被它的强大所震惊。之后，您将看到两个技巧，用于处理一个或多个因为某些原因而超时的 goroutines。然后，您将了解空通道，信号通道，通道的通道和缓冲通道，还有 `context` 包。

在下章您也会了解到**共享内存**，它是同一个 Unix 进程中的线程间共享信息的传统方式，它也适用于 goroutines。不过，共享内存在 Go 开发者中并不流行，因为 Go 提供了更好，更安全和更快速的方法给 goroutines 来交换数据。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wskdsgcf.gitbook.io/mastering-go-zh-cn/09.0/09.8.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
