Method and apparatus for enabling threads to reach a consistent state without explicit thread suspension
Abstract
Methods and apparatus for enabling inconsistent or unsafe threads to efficiently reach a consistent or safe state when a requesting thread requests a consistent state are disclosed. According to one aspect of the present invention, a method for requesting a consistent state in a multi-threaded computing environment using a first thread includes acquiring a consistent state lock using the first thread, and identifying substantially all threads in the environment that are inconsistent. The state of the inconsistent threads is altered to a consistent state, and the first thread is notified when the states of the previously inconsistent threads have been altered to be consistent. Once the first thread is notified, the first thread releases the consistent state lock. In one embodiment, the method also includes performing a garbage collection after releasing the consistent state lock using the first thread.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 28 · Forward citations: 19.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer-implemented method for requesting a consistent state in a computing environment using a first thread, the computing environment including multiple threads, the multiple threads including the first thread, comprising: saving a snapshot of an indication of a state of the first thread and thereafter setting the state of the first thread to a safe state, wherein the indication of the state of which the snapshot is saved is an indication of whether or not the first thread was consistent; acquiring a consistent state lock using the first thread; identifying substantially all threads that
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 19 total)
References Cited — Backward Prior Art (28)
Non-Patent Literature (4)
- Herlihy et al., "Lock-Free Garbage Collection for Multiprocessors", IEEE Inc, New York, vol. 3, No. 3, May 1992, pp. 304-311.
- Herlihy et al., "Lock-Free Garbage Collection for Multiprocessors", IEEE, 1992, pp. 304-311.
- International Search Report in corresponding PCT application.
- Kordale et al., "Concurrent Garbage Collection in Distributed Shared Memory Systems", IEEE, 1993, pp. 51-60.