Grokking Concurrency in Go
Vote

0% completed

​

The Go Memory Model

The Go memory model at go.dev/ref/mem defines how goroutines share memory. Before any of its rules, it gives a piece of advice:

"If you must read the rest of this document to understand the behavior of your program, you are being too clever. Don't be clever."

The advice is sound, and it does not make the rules unnecessary. Every program in this chapter that worked correctly relied on them, and every program with a data race broke them

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content