Notes of To Lock, Swap, or Elide: On the Interplay of Hardware Transactional Memory and Lock Free Indexing
解决了这么几个问题
Does HTM obviate the need for crafty lock-free index designs? No.
How does HTM differ from lock-free index designs?
Given that lock-free designs are still relevant, can HTM help simplify lock-free design techniques while maintaining good performance? Yes.
HTM
Transactional memory
ease the burden (a tedious and error prone task leading to deadlocks and race conditions) by delegating conflict detection and resolution from the developer to the system.
Hardware Transactional Memory
a best-effort model, optimistic concurrency.