Atomically moving list elements between lists using read-copy update
Abstract
A system, method and computer program product for atomically moving a shared list element from a first list location to a second list location includes inserting a placeholder element at the second list location to signify to readers that a move operation is underway, removing the shared list element from the first list location, re-identifying the list element to reflect its move from the first list location to the second list location, inserting it at the second list location and unlinking the placeholder element. A deferred removal of the placeholder element is performed following a period in which readers can no longer maintain references thereto. A method, system and computer program product are additionally provided for performing a lookup of a target list element that is subject to being atomically moved from a first list to a second list.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 7 · Forward citations: 35.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
A method for performing a read operation lookup of a target list element that is subject to being atomically moved from a first list to a second list by a concurrent move operation, comprising: initiating a read operation list traversal beginning at a first list element in said second list; and upon encountering a list element that is a placeholder for said target list element in said second list that was generated as a result of said concurrent move operation involving said target list element being moved from said first list to said second list, waiting until said placeholder indicates that
- Claim 2Depends on #1
A method in accordance with claim 1 , further including maintaining a count of elements traversed by said lookup and asserting a lock against concurr
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 35 total)
References Cited — Backward Prior Art (7)
Non-Patent Literature (2)
- Mckenney et al., "Read-copy update: using execution history to solve concurrency problems", Parallel and Distributed Computing and Systems, Oct. 1998.
- Paul E. McKenney et al., "Scaling dcache with RCU", Linux Journal (Jan. 1, 2004).