System and method for executing a transaction using parallel co-transactions
Abstract
The transactional memory system described herein may implement parallel co-transactions that access a shared memory such that at most one of the co-transactions in a set will succeed and all others will fail (e.g., be aborted). Co-transactions may improve the performance of programs that use transactional memory by attempting to perform the same high-level operation using multiple algorithmic approaches, transactional memory implementations and/or speculation options in parallel, and allowing only the first to complete to commit its results. If none of the co-transactions succeeds, one or more may be retried, possibly using a different approach and/or transactional memory implementation. The at-most-one property may be managed through the use of a shared “done” flag. Conflicts between co-transactions in a set and accesses made by transactions or activities outside the set may be managed using lazy write ownership acquisition and/or a priority-based approach. Each co-transaction may execute on a different processor resource.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 32 · Forward citations: 9.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method, comprising: using a computer to perform: initiating concurrent execution of two or more different code sequences, each of which is executable to perform a respective task as an atomic transaction, wherein each of the atomic transactions is a transaction in a set of co-transactions, wherein at most one of the atomic transactions in the set of co-transactions is to be allowed to succeed and commit its results, and wherein each of the two or more code sequences comprises one or more memory access operations to locations in a shared memory that is accessible to a plurality of concurrentl
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (9 of 9 total)
References Cited — Backward Prior Art (32)
Non-Patent Literature (5)
- Adam Welc, et al, "Transactional Monitors for Concurrent Objects," ECOOP'04, pp. 1-24.
- Adam Welc, et al, "Transparently Reconciling Transactions with Locking For Java Synchronization," ECOOP'04, pp. 1-26.
- Ansari, et al., "Adaptive Concurrency Control for Transactional Memory," 2008, pp. 1-12.
- Attiya, et al., "Transactional contention management as a non-clairvoyant scheduling problem", ACM, 2006, pp. 308-315.
- Dave Dice, "Implementing Fast Java Monitors with Relaxed-Locks," USENIX JVM'01, pp. 1-13.