Concurrency
Map
Arrows point from what you learn first to what it opens. Point at a concept to light up its chain and where it comes back deeper. Right-click a concept (or press and hold it) for its lessons and stories.
- Proven to depth123+
- Open
- Locked
- Comes back deeper
Learning path
In the order the concepts build on each other.
- ConcurrencyLockedWriting a program as several tasks whose lifetimes overlap, so one can make progress while another waits.Opens after: Functions in code
- GoroutinesLockedGo's lightweight concurrent functions - started with the go keyword and multiplexed by the Go runtime onto OS threads.Opens after: Functions in code, Thread
- ParallelismLockedRunning several computations at the very same instant on different processor cores, which is what speeds up work that computes rather than waits.Opens after: Thread
- Async programmingLockedConcurrency in a single thread, where coroutines say with await where they wait and an event loop runs another one meanwhile.Opens after: Concurrency
- ChannelsLockedTyped pipes that goroutines use to send values to each other - and to synchronize while doing it.Opens after: Goroutines
Connections to other domains
- Goroutines needs Functions in codeFunctions
- Goroutines needs ThreadOperating Systems
- Concurrency needs Functions in codeFunctions
- Concurrency, depth 2 needs ThreadOperating Systems
- Parallelism needs ThreadOperating Systems
- Concurrency leads to ThreadOperating Systems