False Sharing — An example with Go

Originally published on Medium: https://dariodip.medium.com/false-sharing-an-example-with-go-bc7e90594f3f False Sharing — An example with Go Diving in multiprocessor programming is never easy, I know. Unfortunately for you, you should understand much about computer architecture to do it effectively. This post will go deep into computer architecture, trying to explain one of the most insidious problems that we may encounter when we do multiprocessor programming: false sharing. False Sharing: an example in Go Let’s implement a simple counter interface. ...

March 27, 2021 · 6 min · Dario Di Pasquale