Making a Spin Lock, should you even try?

Why shouldn’t you write your own spin lock implementation There’s a really good post by Linus Torvalds on why you shouldn’t do it, you can find that here: Link. But if you don’t really want to read that post, it can be summarized as follows: The OS doesn’t understand there’s a spin lock going on,Continue reading “Making a Spin Lock, should you even try?”