3 ms·
One thing I had to learn the hard way is that a spin lock is a bad fit the moment your threads can be preempted mid critical section. Under oversubscription you
by hn45e7pbij 23d ago
One thing I had to learn the hard way is that a spin lock is a bad fit the moment your threads can be preempted mid critical section. Under oversubscription you're spinning against a thread that isn't even scheduled.
- dalvrosa 23d agoYeah that's quite right, you shouldn't be using spinlock without pinned threads