TransactionalDataStructure

From APIDesign

Revision as of 15:52, 6 June 2025 by JaroslavTulach (Talk | contribs)
Jump to: navigation, search

TransactionalDataStructure is a realization of wikipedia::Lock free algorithm. The primary goal is not to avoid locks, but to build reliable data structure that keeps consistency even under multi threaded access and can be easily reason about. To do so the data structure uses two important concepts:

  • immutability
  • compare and swap (aka CAS) operation


Lock Free Algorithm

CAS - compare and swap

Personal tools
buy