Efficient rollback and retry of conflicted speculative threads using distributed tokens
Abstract
A method for rolling back speculative threads in symmetric-multiprocessing (SMP) environments is disclosed. In one embodiment, such a method includes detecting an aborted thread at runtime and determining whether the aborted thread is an oldest aborted thread. In the event the aborted thread is the oldest aborted thread, the method sets a high-priority request for allocation to an absolute thread number associated with the oldest aborted thread. The method further detects that the high-priority request is set and, in response, modifies a local allocation token of the oldest aborted thread. The modification prompts the oldest aborted thread to retry a work unit associated with its absolute thread number. The oldest aborted thread subsequently initiates the retry of a successor thread by updating the successor thread's local allocation token. A corresponding apparatus and computer program product are also disclosed.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 9 · Forward citations: 1.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer program product for efficiently rolling back and retrying conflicted speculative threads in symmetric-multiprocessing (SMP) environments, the computer program product comprising a non-transitory computer-readable storage medium having computer-usable program code embodied therein, the computer-usable program code comprising: computer-usable program code to detect an aborted thread at runtime; computer-usable program code to determine whether the aborted thread is an oldest aborted thread; computer-usable program code to, in the event the aborted thread is the oldest aborted thread,
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (1 of 1 total)
| Patent | Title | Year | Citations |
|---|---|---|---|
| US 10,922,146 B1 | Synchronization of concurrent computation engines | 2021 | 3 |
References Cited — Backward Prior Art (9)
Non-Patent Literature (5)
- Oancea, Cosmin, et al., "Distributed Models of Thread-Level Speculation," Proceedings of the International Conference on Parallel and Distributed Processing Techniques and Applications, 2005.
- Prabhu, Prakash, et al., "Safe Programmable Speculative Parallelism," Proceedings of the 2010 ACM SIGPLAN Conference on Programming Language Design and Implementation, pp. 50-61, 2010.
- Rajwar, Ravi, et al., "Speculative Lock Elision: Enabling Highly Concurrent Multithreaded Execution," Proceedings of the 34th International Symposium on Microarchitecture (MICRO), Dec. 2001.
- Raman, Arun, et al., "Speculative Parallelization Using Software Multi-Threaded Transactions," Proceedings of the Fifteenth Edition of ASPLOS on Architectural Support for Programming Languages and Operating Systems, pp. 65-76, Mar. 2010.
- Rundberg, Peter, et al., "An All-Software Thread-Level Data Dependence Speculation System for Multiprocessors," Journal of Instruction-Level Parallelism, 2001.