Golang, Software Performance, Concurrent Programming, Cache Coherence, Database Development.
need to sync when they are accessing the same lock. Here is some quick benchmarking code: import ( "runtime" "sync" "testing" ) func BenchmarkStripedMutex(b *testing.B) { procs := runtime.GOMAXPROCS(0) lock := New[sync.Mutex](uint(procs)) threadMut := sync.Mutex{} threadId := 0