57

Handmade mutex in 28 lines of go – Alexander Borisov – Medium

 5 years ago
source link: https://medium.com/@cheshirysh/handmade-mutex-in-28-lines-of-go-205ff5b13dbc
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
We’re going to create our own mutex using CAS(CompareAndSwap) and Goshed. Why? Doesn’t matter. Fun is a good enough reason to do strange things. Mutexes and other lockers is used to protect access to…

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK