Hacker News new | ask | show | jobs
by imtringued 137 days ago
It works if there is no scheduler, or you tell the scheduler what you're doing.

Turns out the first scenario is rare outside of embedded or OS development. The second scenario defeats the purpose because you're doing the same thing a mutex would be doing. It's not like mutexes were made slow on purpose to bully people. They're actually pretty fast.