Go approaches its memory model in much the same way as the rest of the language, aiming to keep the semantics simple, understandable, and useful. In the absence of data races, Go programs behave as if all the goroutines were multiplexed onto a single processor.

15m read timeFrom go.dev
Post cover image
Table of contents
Version of June 6, 2022IntroductionMemory ModelImplementation Restrictions for Programs Containing Data RacesSynchronizationIncorrect synchronizationIncorrect compilationConclusion
3 Comments

Sort: