Skip to content

Glossary: Go Beyond the Basics

data race

Also written: race, races, concurrent map writes

Two goroutines using the same variable at once, with at least one writing. It depends on timing, so it can hide in tests, as with the shop selling 20 of 9 mugs; Go sometimes stops with `fatal error: concurrent map writes`.

Where the book teaches it

Related terms

race detectormutexatomic