r/programming • u/david-alvarez-rosa • Sep 09 '26
Optimizing a Spin-Lock
https://david.alvarezrosa.com/posts/optimizing-a-spin-lock/
183
Upvotes
r/programming • u/david-alvarez-rosa • Sep 09 '26
View all comments
Show parent comment
1
u/monocasa Sep 12 '26
Not necessarily.
On a SMT system, it's common to use instructions like monitor and pause to stop the one hardware thread and give priority to the others.