IT lexicon › Hardware › Hardware transactional memory

Hardware transactional memory

Hardware På svenska → Updated: 2026-11-16

CPU support for executing a sequence of instructions atomically — all or nothing — without explicit locking, introduced by Intel (TSX) and AMD (RTM).

Hardware transactional memory (HTM) is one of the latest attempts to resolve the locks-vs-lock-free dilemma. Instead of taking locks or using CAS, the program declares a code region as a transaction. The CPU understands this and attempts to execute instructions without locks; if a conflict occurs (another CPU writes to the same cacheline), the transaction automatically restarts.

Intel's TSX and later AMD's RTM are limited implementations: transactions can abort on fallback paths, too many reads/writes, or frequent context switches. Many applications retain fallback to traditional locking. HTM is most useful for low-contention lock scenarios.

← Back to the lexicon