blob: 82cc20d89664eb7723ffc5b1c2898475dd951b9d [file] [log] [blame] [view]
Sameer Ajmani6942db02015-01-08 14:40:13 -05001This page links to resources for learning about concurrency in Go. The items are presented in order, from beginner material to advanced topics.
2
3## Beginner
4- Read [Effective Go: Concurrency](https://golang.org/doc/effective_go.html#concurrency)
Sameer Ajmani6942db02015-01-08 14:40:13 -05005- Study [The Go Programming Language Specification](https://golang.org/ref/spec), especially
6 - [Go statements](https://golang.org/ref/spec#Go_statements)
7 - [Channel types](https://golang.org/ref/spec#Channel_types)
8 - [Send statements](https://golang.org/ref/spec#Send_statements)
9 - [Receive operator](https://golang.org/ref/spec#Receive_operator)
10 - [Select statements](https://golang.org/ref/spec#Select_statements)
Sameer Ajmanib1d7b912015-01-08 15:09:27 -050011- Code [A Tour of Go: Concurrency](http://tour.golang.org/concurrency/1)
Sameer Ajmani3a883e12015-01-09 09:23:46 -050012- Read the [Frequently Asked Questions (FAQ)](http://golang.org/doc/faq), especially
13 - [Why build concurrency on the ideas of CSP?](http://golang.org/doc/faq#csp)
14 - [Why goroutines instead of threads?](http://golang.org/doc/faq#goroutines)
15 - [Why are map operations not defined to be atomic?](http://golang.org/doc/faq#atomic_maps)
16 - [What operations are atomic? What about mutexes?](http://golang.org/doc/faq#What_operations_are_atomic_What_about_mutexes)
17 - [Why doesn't my multi-goroutine program use multiple CPUs?](http://golang.org/doc/faq#Why_no_multi_CPU)
18 - [Why does using GOMAXPROCS > 1 sometimes make my program slower?](http://golang.org/doc/faq#Why_GOMAXPROCS)
19 - [What happens with closures running as goroutines?](http://golang.org/doc/faq#closures_and_goroutines)
Sameer Ajmani694ce552015-01-08 15:14:27 -050020- Study [Go by Example](https://gobyexample.com) from [goroutines](https://gobyexample.com/goroutines) through [stateful goroutines](https://gobyexample.com/stateful-goroutines)
Sameer Ajmani6942db02015-01-08 14:40:13 -050021
22## Intermediate
23- Watch [Go Concurrency Patterns](https://talks.golang.org/2012/concurrency.slide#1)
Sameer Ajmani3a883e12015-01-09 09:23:46 -050024- Read [Share Memory By Communicating](http://blog.golang.org/share-memory-by-communicating) and do the [codewalk](http://golang.org/doc/codewalk/sharemem/)
25- Read [Go Concurrency Patterns: Timing out, moving on](http://blog.golang.org/go-concurrency-patterns-timing-out-and)
26- Watch [Concurrency is not Parallelism](http://talks.golang.org/2012/waza.slide#1)
Sameer Ajmani6942db02015-01-08 14:40:13 -050027- Read [Go Concurrency Patterns: Pipelines and Cancellation](http://blog.golang.org/pipelines)
28- Study [Package sync](https://golang.org/pkg/sync/)
29- Read [Introducing the Go Race Detector](http://blog.golang.org/race-detector)
Sameer Ajmani00425cd2015-01-09 13:52:48 -050030- Watch [Go: code that grows with grace](http://talks.golang.org/2012/chat.slide#1)
Sameer Ajmani6942db02015-01-08 14:40:13 -050031
32## Advanced
33- Watch [Advanced Go Concurrency Patterns](http://talks.golang.org/2013/advconc.slide#1)
34- Read [Go Concurrency Patterns: Context](http://blog.golang.org/context)
35- Study [The Go Memory Model](https://golang.org/ref/mem)
36- Study [Package atomic](https://golang.org/pkg/sync/atomic/)