> 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.2.md).

# 09.2 Goroutines

在Go语言中使用go关键字后跟函数名称或定义完整的匿名函数即可开启一个新的Goroutine，使用go关键字调用函数后会立即返回，该函数在后台作为Goroutine运行，程序的其余部分继续执行

但是，如上所述，您无法控制您的Goroutine的执行顺序，因为这取决于操作系统的调度程序，Go调度程序以及操作系统的负载。
