Advanced
Go (Golang)
Q61 / 100
What is the Go memory model's guarantee about goroutine communication?
Correct! Well done.
Incorrect.
The correct answer is B) The Go memory model defines happens-before relationships: channel sends happen before receives, sync primitives establish ordering
B
Correct Answer
The Go memory model defines happens-before relationships: channel sends happen before receives, sync primitives establish ordering
Explanation
The Go memory model (2022 revision) specifies that a send on a channel happens before the corresponding receive, and close happens before a receive of the zero value.
Progress
61/100