常见的并发模型有以下几种:
- 线程&锁模型
- Actor模型
- CSP模型
- Fork&Join模型
Go语言中的并发程序主要是通过基于CSP(communicating sequential processes)
的goroutine
和channel
来实现。
Concurrency is an inherent part of the Go programming language. Concurrency is handled in Go using
Goroutines
andchannels
. We will discuss them in detail in the upcoming tutorials.