Friday 9 March 2012

Things to remember when designing computers, number 4,923: A mutex lock is also a memory barrier. In the uncontended case, the memory barrier costs more than the lock.