Transactional locking with read-write locks in transactional memory systems
Abstract
A system and method for transactional memory using read-write locks is disclosed. Each of a plurality of shared memory areas is associated with a respective read-write lock, which includes a read-lock portion indicating whether any thread has a read-lock for read-only access to the memory area and a write-lock portion indicating whether any thread has a write-lock for write access to the memory area. A thread executing a group of memory access operations as an atomic transaction acquires the proper read or write permissions before performing a memory operation. To perform a read access, the thread attempts to obtain the corresponding read-lock and succeeds if no other thread holds a write-lock for the memory area. To perform a write-access, the thread attempts to obtain the corresponding write-lock and succeeds if no other thread holds a write-lock or read-lock for the memory area.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 21 · Forward citations: 2.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer-implemented method, comprising: associating each of a plurality of shared memory areas with a respective read-write lock, wherein for each shared memory area the read-write lock includes a read-lock portion indicating whether any thread has a read-lock for read-only access to the associated shared memory area and a write-lock portion indicating whether any thread has a write-lock for write access to the associated shared memory area, wherein for each respective read-write lock, the read-lock portion comprises a plurality of slots, wherein for each slot: a value of the slot is modifi
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (2 of 2 total)
References Cited — Backward Prior Art (21)
Non-Patent Literature (5)
- "Class ReentrantReadWriteLock," Java2 Platform, Standard Ed. 5.0, Sun Microsystems, Inc., found at http://java.sun.com/j2se/1.5.0/docs/api/java/util/concurrent/locks/ReentrantReadWriteLock.html.
- "Class ReentrantReadWriteLock," Java2 Platform, Standard Ed. 5.0, Sun Microsystems, Inc., found at http://java.sun.com/j2se/1.5.0/docs/api/java/util/concurrent/locks/ReentrantReadWriteLock.html. Retrieved on Jun. 26, 2009.
- "Interface ReadWriteLock," Java2 Platform, Standard Ed. 5.0, 2004 Sun Microsystems, Inc., found at http://java.sun.com/j2se/1.5.0/docs/api/java/util/concurrent/locks/ReadWriteLock.html.
- "Solaris Read-Write locks", 2008 Sun Microsystems, Inc.
- Adam Welc, et al., "Irrevocable Transactions and their Applications," SPAA'08, Jun. 2008, Munich, Germany. Copyright 2008 ACM.