Load-balancing queues employing LIFO/FIFO work stealing
Abstract
In response to source code that represents instructions for dynamically allocating memory to objects, a compiler/interpreter produces instructions that implement a garbage collector. The garbage collector operates in garbage-collection cycles, which include parallel-execution operations such as locating reachable objects. Each thread maintains a respective task queue onto which it pushes identifiers of objects thus found and from which it pops those identifiers in order to begin the tasks of locating the further objects to which objects specified by the thus-popped identifiers refer. A thread's access to its respective task queue ordinarily occurs on a last-in, first-out basis, but the access mode switches to a first-in, first-out basis if the number of task-queue entries exceeds a predetermined threshold.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 50 · Forward citations: 27.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer system configured to: A) provide a plurality of task queues, each having a top end and a bottom end and in which can be stored and from which can be retrieved task identifiers, which identify tasks to be performed; and B) for each provided task queue, employ a separate execution thread associated therewith to: i) select repeatedly a current access mode from one of a LIFO access mode and a FIFO access mode in accordance with a mode-selection criterion; and ii) perform dynamically identified tasks, wherein each said dynamically identified task is a garbage-collection task for performi
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 27 total)
References Cited — Backward Prior Art (50)
Non-Patent Literature (5)
- Adity, et al., "Garbage Collection for Strongly-Typed Languages using Run-Time Reconstruction", ACM, 1994, 16-20.
- Appel, "Simple Generational Garbage Collection and Fast Allocation", Software Practice and Experience, 19(2), 1989, 171-183.
- Arora, et al., "Thread Scheduling for Multiprogrammed Multiprocessors", Dept. of Computer Science, Uni. of Texas, 1998, Austin.
- Baker, "List Processing in Real Time on a Serial Computer", Communications of the ACM 21, Apr. 1978, 280-294.
- Bibolet, et al., "Asynchronous Service Routine Invocation with Safely Serialized Work Queue", IBM Tech. Disclosure Bulletin, vol. 25, No. 8, Jan. 1983, IBM Corp.