Skip to content

Glossary: Go Beyond the Basics

critical section

The code between `Lock` and `Unlock`, which only one goroutine may run at a time. Keep it short so others don't wait long.

Where the book teaches it

Related terms

mutexdata race