Lock leasing method for solving deadlock
Abstract
A method for resolving deadlock in a multi-threaded computing system using a novel lock lease is disclosed. A first thread leases a lock held by the first thread to a second thread different from the first thread. The leasing transfers control of the lock to the second thread while the first thread retains ownership of the lock. To lease the lock: (1) the second thread applies for the lease from the first thread; (2) the first thread grants the lease; (3) the first thread waits for the second thread to complete a task; (4) the second thread terminates the lease; (5) the first thread confirms termination of the lease. The first thread receives control of the lock back from the second thread after the second thread has finished using resources controlled by the lock. The second thread also can sublease the lock to a third thread.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 7 · Forward citations: 3.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
A method for resolving deadlock in a multi-threaded computing system, the method comprising: leasing, by a first thread, a lock held by the first thread to a second thread different from the first thread, wherein leasing the lock comprises transferring control of the lock to the second thread while the first thread retains ownership of the lock; and receiving, by the first thread, the control of the lock back from the second thread after the second thread has finished using the lock.
- Claim 2Depends on #1
The method of claim 1 , further comprising: applying for a lease on the lock by the second thread; granting the lease on the lock by the first thread; waiting for the second thread to complete a task by the first thread; terminating the lease on the lock by the second thread; and confirming termination of the lease on the lock by the
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗