News for hackers. Stuff that matters.
Re:The Fastest Mutexes by cesarb on Thursday October 03, 2024 @11:54AM (#41731866)
> But the actual code for YieldProcessor is a NOP on x86:[2]

> __asm__ __volatile__( "rep; nop" : : : "memory" );

It might look like a NOP, but "REP NOP" is not a real NOP, it's the PAUSE instruction (which very old processors from the 1990s treated as a normal NOP).

There are no comments on this comment yet.