3 ms·
It's useful for fields (not just locks; I'm thinking of lock-free algorithms that do a compare-and-swap directly on a value) that have low contention.
by scott_s 14y ago
It's useful for fields (not just locks; I'm thinking of lock-free algorithms that do a compare-and-swap directly on a value) that have low contention.
- JoeAltmaier 14y agoEven uncontended, the value has to be reconciled between cpus/caches. So it has to be plumbed down thru all the caches, then back up.
- scott_s 14y agoThat's my point: uncontended values may not be in any other caches.