Adaptive spin-then-block mutual exclusion in multi-threaded processing
Abstract
Adaptive modifications of spinning and blocking behavior in spin-then-block mutual exclusion include limiting spinning time to no more than the duration of a context switch. Also, the frequency of spinning versus blocking is limited to a desired amount based on the success rate of recent spin attempts. As an alternative, spinning is bypassed if spinning is unlikely to be successful because the owner is not progressing toward releasing the shared resource, as might occur if the owner is blocked or spinning itself. In another aspect, the duration of spinning is generally limited, but longer spinning is permitted if no other threads are ready to utilize the processor. In another aspect, if the owner of a shared resource is ready to be executed, a thread attempting to acquire ownership performs a “directed yield” of the remainder of its processing quantum to the other thread, and execution of the acquiring thread is suspended.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 50 · Forward citations: 19.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer-implemented method of acquiring ownership of a shared resource in a multi-threaded computing environment, comprising: for each set of multiple sets of N successive attempts by a first thread acquire ownership of the shared resource: for each of a predetermined number of the N attempts of the set, executing a spin procedure during which the first thread repeatedly determines whether the shared resource is owned by another thread, the spin procedure terminating upon the earlier of (i) successfully obtaining ownership of the shared resource, or (ii) reaching a predetermined execution t
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 (50)
Non-Patent Literature (5)
- Barua, S., "Computer-based multimedia system on computer organization and design," IEEE, Oct. 1997, (Abstract only).
- Bershad, Brian N. et al., "Fast Mutual Exclusion for Uniprocessors," ACM Sigplan Notices: vol. 27, Issue 9, (Sep. 1992), pp. 222-233.
- Card, Stuart K., et al. "The WebBook and the Forager: an informational workspace for the World Wide Web," ACM Conference, 1996, pp. 111-117.
- Chang, Chi-Chao, et al., "Interfacing Java to the Virtual Interface Architecture," JAVA ACM, 1999, pp. 51-57.
- Ishizaki, kazuaki, et al., "Design, Implementation, and Evaluation of Optimizations in a Just-In-Time Compiler, " JAVA ACM, 1999, pp. 119-128.