Re:No nuances, just buggy code (was: related to Spinlock imp...
by mritun on Sunday January 05, 2020 @04:26PM
(#21964230)
Calling sleep(1) instead of thread yield is faster - see the twitter thread for a proof.
[ Parent
| on HN ]
Re:No nuances, just buggy code (was: related to Spinlock imp...
by de_watcher on Monday January 06, 2020 @10:04AM
(#21969619)
Still worse: it's a confusing code, and it's also confusing that it's faster.