Lock windows for reducing contention
Abstract
Methods and arrangements to assign locks to threads are discussed. Embodiments include transformations, code, state machines or other logic to assign locks to threads. Embodiments may include setting a window of time at the end of a time slice of a thread. The embodiment may also involve prohibiting the thread from acquiring a lock during the window of time, based upon determining that the thread is within the window of time and determining that the thread does not hold any locks. Other embodiments include an apparatus to assign locks to threads and a computer program product to assign locks to threads.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 27 · Forward citations: 3.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
A method of assigning locks to threads, the method comprising: setting a window of time at the end of a time slice of a non-suspended thread, the time slice including a scheduled end and the window of time including a period of time that starts before the scheduled end of the time slice; determining that the thread has requested a lock within the window of time; prohibiting the thread from acquiring a lock during the window of time, based upon determining that the thread is within the window of time and determining that the thread does not hold any locks; and timing out the thread for the rema
- Claim 2Depends on #1
The method of claim 1 , further comprising: registering an area of memory to store the start of the window of time; and storing in the area of memory the start of the window of time based
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (3 of 3 total)
References Cited — Backward Prior Art (27)
Non-Patent Literature (3)
- Bijun He, et al., "Preemption Adaptivity in Time-Published Queue-Based Spin Locks," Department of Computer Science, University of Rochester, Rochester, NY 14627-0226, USA, 2005, pp. 12.
- Engler, Dawson R "The Exokernel Operating System Architecture", Massachusetts Institute of Technology, Oct. 1998, pp. 9.
- Hohmuth, Michael, "Pragmatic Nonblocking Synchronization for Real-time Systems", Proceedings of the 2001 USENIX Annual Technical Conference, 2001, pp. 15.