Dancing with Go’s Mutexes
Ralph Caraveo III
2737

Great article. I might also add that if you find yourself mutexing integers, consider using sync/atomic’s primitive functions. These operations perform very well in high-load situations and don’t require you to manage a mutex. See, for example, Bjorn Rabenstein’s talk at the 2015 Gophercon: https://www.youtube.com/watch?v=1V7eJ0jN8-E&t=736

Show your support

Clapping shows how much you appreciated Matt Holt’s story.