Important Characteristics of Go: Concurrency Model
Let’s learn about the Go concurrency model.
We'll cover the following...
We'll cover the following...
Understanding the Go concurrency model
This lesson is a quick introduction to the Go concurrency model. The Go concurrency model is implemented using goroutines and channels. A goroutine is the smallest executable Go entity. In order to create a new goroutine, we have to use the go
keyword followed by a predefined function or an anonymous function—both methods are equivalent as far as Go is concerned.
Note: We can only execute functions or anonymous functions as goroutines.
A channel ...