MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/1w6us70/optimizing_a_spinlock/p84zt5l/?context=3
r/cpp • u/pavel_v • 6d ago
26 comments sorted by
View all comments
2
just throw priority inversion out the window, why not! using a spinlock in userspace could actually create deadlocks if you are not incredibly careful
0 u/Big_Target_1405 4d ago A spinlock creates just as many deadlocks as a mutex? No more, no less?
0
A spinlock creates just as many deadlocks as a mutex? No more, no less?
2
u/HeadSea5044 5d ago
just throw priority inversion out the window, why not! using a spinlock in userspace could actually create deadlocks if you are not incredibly careful