4 ms·
In Golang there are sync.Mutex, sync.Atomic and Channels to create this fence and prevent data races. I prefer sync.Mutex. Does anyone understand how Go handle
by igtztorrero 11mo ago
In Golang there are sync.Mutex, sync.Atomic and Channels to create this fence and prevent data races. I prefer sync.Mutex.
Does anyone understand how Go handles the CPU cache?
- groundzeros2015 11mo agoYes. Locks will use a memory fence. More advanced programs will need fence without locking.
- deleted 11mo ago[deleted]