r/programming • • Sep 09 '26

Optimizing a Spin-Lock

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

32 comments sorted by

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.