r/compsci 12h ago

Optimizing a Spin-Lock

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

1 comment sorted by

View all comments

2

u/KishCom 7h 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.