3 ms·
Maybe I don't understand the concept, but aren't lock-free structures "just" delegating the locking mechanism to the CPU via atomic operations ? (although even
by jylam 3y ago
Maybe I don't understand the concept, but aren't lock-free structures "just" delegating the locking mechanism to the CPU via atomic operations ? (although even if that's the case I can understand the speedup) (and if so, why aren't all those lockfree structures the default, instead of using mutexes ?)
- gpderetta 3y agoAtomic operations can't be meaningfully said to perform any locking. In any case lock-free is defined in term of progress guarantees.