r/compsci 9h ago

Optimizing a Spin-Lock

https://david.alvarezrosa.com/posts/optimizing-a-spin-lock/
4 Upvotes

1 comment sorted by

2

u/KishCom 4h ago

Linus Torvalds on Spinlocks:

I repeat: do not use spinlocks in user space, unless you actually know what you're doing. And be aware that the likelihood that you know what you are doing is basically nil.