3 ms·
if YieldProcessor() actually did switch it'd be awfully expensive, like mentioned "rep; nop", is not just a "nop". OTOH, the usual way to lock via a busy loop/
by xxs 2y ago
if YieldProcessor() actually did switch it'd be awfully expensive, like mentioned "rep; nop", is not just a "nop".
OTOH, the usual way to lock via a busy loop/spin, does require some attempts then backoff with a random duration.