Transactional memory
A programming model where multiple memory operations are grouped into atomic transactions that either complete fully or abort completely.
Transactional memory (TM) offers an alternative to lock-based synchronization. Instead of protecting critical sections with mutexes, a programmer can wrap a sequence of memory operations in a transaction. If no conflict occurs (two threads writing to the same address), the transaction commits. If a conflict occurs, it aborts and retries. Hardware transactional memory (HTM) like Intel TSX implements this partly in hardware; software transactional memory (STM) simulates it entirely in software.
TM can eliminate certain deadlock scenarios and is potentially faster than locking when conflicts are rare.