Adaptive spinning futexes
Posted May 13, 2010 11:38 UTC (Thu) by
farnz (guest, #17727)
In reply to:
Adaptive spinning futexes by etienne_lorrain@yahoo.fr
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.
(
Log in to post comments)