Intel's Transactional Synchronization Extension is transactional memory, allowing lock-free atomic transactions that read and write multiple memory locations.
Don't use tsx for this - it has been repurposed for some JavaScript React thing.
Wrong usage of the [tsx] tag on Meta.
TSX is Intel's Transactional Synchronization Extension for transactional memory, including HLE (Hardware Lock Elision) and RTM (Restricted Transactional Memory)
It provides additional x86 assembly instructions and instruction prefixes for activating/deactivating a transactional access to memory and avoid hardware locking if possible.
The feature has been repeatedly disabled via Microcode update after different attempts to implement it in different CPU families due to correctness and security issues.
As of June 2020, HLE ended up being deprecated in latest Intel® 64 and IA-32 Architectures Software Developer’s Manual (see 2.5 Intel instruction set architecture and features removed). RTM is still not deprecated and possibly can be used in some current or future CPUs.
More information: