Transactional memory
In computer science and engineering, transactional memory attempts to simplify concurrent programming by allowing a group of load and store instructions to execute in an atomic way.[src] It is a concurrency control mechanism analogous to database transactions for controlling access to shared memory in concurrent computing.[src] Transactional memory systems provide high-level abstraction as an alternative to low-level thread synchronization.[src] This abstraction allows for coordination between concurrent reads and writes of shared data in parallel systems.[src]
In computer science and engineering, transactional memory attempts to simplify concurrent programming by allowing a group of load and store instructions to execute in an atomic way.[src] It is a concurrency control mechanism analogous to database transactions for controlling access to shared memory in concurrent computing.[src] Transactional memory systems provide high-level abstraction as an alternative to low-level thread synchronization.[src] This abstraction allows for coordination between concurrent reads and writes of shared data in parallel systems.[src] class Account: def __init__(self, id: int, balance: float, name: str) -> None: self.id: int = id self.balance: float = balance self.name: str = name def transfer_money(from_account: Account, to_account: Account, amount: float) -> None: """ Transfer money from one account to another.[src] """ with transaction(): from_account.balance -= amount to_account.balance += amount In the code, the block defined by "transaction" is guaranteed atomicity, consistency and isolation by the underlying transactional memory implementation and is transparent to the programmer.[src] The variables within the transaction are protected from external conflicts, ensuring that either the correct amount is transferred or no action is taken at all.[src] Note that concurrency related bugs are still possible in programs that use a large number of transactions, especially in software implementations where the library provided by the language is unable to enforce correct use.[src] Bugs introduced through transactions can often be difficult to debug since breakpoints cannot be placed within a transaction.[src] Transactional memory is limited in that it requires a shared-memory abstraction.[src] Although transactional memory programs cannot produce a deadlock, programs may still suffer from a livelock or resource starvation.[src] For example, longer transactions may repeatedly revert in response to multiple smaller transactions, wasting both time and energy.[src] Michael Neuling (IBM), "What's the deal with Hardware Transactional Memory!?!" introductory talk at linux.conf.au 2014 Transactional Memory Online: Categorized bibliography about transactional memory[src]
17 sentences · 17 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Transactional memory." encyclopegia.org, 2026, https://encyclopegia.org/wiki/transactional-memory. Accessed 04 December 2026.
Chicago
"Transactional memory." encyclopegia.org. Accessed December 4, 2026. https://encyclopegia.org/wiki/transactional-memory.
APA
encyclopegia.org. (2026). Transactional memory. Retrieved December 4, 2026, from https://encyclopegia.org/wiki/transactional-memory
Accessed December 4, 2026 · CC BY-SA 4.0 · citation page · JSON