System and method for transactional locking using reader-lists
Abstract
In traditional transactional locking systems, such as Transactional Locking with Read-Write locks (TLRW), threads may frequently update lock metadata, causing system performance degradation. A system and method for implementing transactional locking using reader-lists (TLRL) may associate a respective reader-list with each stripe of data in a shared memory system. Before reading a given stripe as part of a transaction, a thread may add itself to the stripe's reader-list, if the thread is not already on the reader-list. A thread may leave itself on a reader-list after finishing the transaction. Before a thread modifies a stripe, the modifying thread may acquire a write-lock for the stripe. The writer thread may indicate to each reader thread on the stripe's reader-list that if the reader thread is executing a transaction, the reader thread should abort. The indication may include setting an invalidation flag for the reader. The writer thread may clear the reader-list of a stripe it modified.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 4 · Forward citations: 7.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
A computer-implemented method, comprising: a thread executing a transaction in a multi-threaded, transactional memory system, wherein said executing the transaction comprises: the thread determining whether it is eligible to read a stripe in memory based, at least in part, on a value in a reader-list associated with the stripe; the thread adding itself to the reader-list if the thread determines that it is not eligible to read a stripe; and the thread reading the stripe from memory.
- Claim 2Depends on #1
The method of claim 1 , further comprising, subsequent to said reading the stripe: a second thread acquiring a write-lock associated with the stripe; the second thread determining that the thread should be invalidated; the second thread providing an indication to the thread that the second thread has acquired a write-lock on the stripe; and the second thread modifyi
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (7 of 7 total)
References Cited — Backward Prior Art (4)
Non-Patent Literature (5)
- "Class ReentrantReadWriteLock," Copyright 2004 Sun Microsystems, Inc., http://java.sun.com/j2se/1.5.0/docs/api/java/util/concurrent/locks/ReentrantReadWriteLock.html.
- "Interface ReadWriteLock," Copyright 2004 Sun Microsystems, Inc., http://java.sun.com/j2se/1.5.0/docs/api/java/util/concurrent/locks/ReadWriteLock.html.
- Dice, et al., "Transactional Locking II," Proc. of the 20th International Symposium on Distributed Computing (DISC 2006).
- Dice, et al., "Understanding Tradeoffs in Software Transactional Memory," IEEE, 2007, pp. 21-33.
- Dice, et al., "What Really Makes Transactions Faster?," Proc. of the 1st TRANSACT 2006 workshop, 2006.