Adaptive spinning futexes
Posted May 13, 2010 11:38 UTC (Thu) by farnz
In reply to: Adaptive spinning futexes
Parent article: Adaptive spinning futexes
That gets into implementation dependent knowledge - on some implementations of hyperthreading, if one thread is just reading a memory location, testing the value, and looping, almost all the execution units will be spare for the other hyperthread. If that thread releases the lock quickly, the thread that has been spinning is instantly ready to work, and you get maximum benefits from hyperthreading.
to post comments)