Goroutines and Channels

Back to Go Concurrency

Goroutines are lightweight green threads (2KB initial stack) launched with the go keyword. Channels are typed conduits for communication between goroutines. Together they implement CSP-style concurrency where “share memory by communicating” is preferred over shared memory with locks.

concurrency language-specific go goroutines channels