Or, more generally, minimizing the odds of waiting on a lock, without resorting to a complex lock free scheme?
A disadvantage of that approach is that even without any lock contention you would still have two writes to memory for every lock acquisition.
Or, more generally, minimizing the odds of waiting on a lock, without resorting to a complex lock free scheme?