Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: