Golang, Software Performance, Concurrent Programming, Cache Coherence, Database Development.
implementation above will have to sync their caches as each core modifies (ie. calls Lock()) the Mutex. Let’s say we have 2 cores and 8 locks aligned to the CPUs cacheline. Core 0 locks the Mutex at index 1, which modifies some internal properties of the lock. This is fast, as the cacheline has not