Dynamically controlling the number of busy waiters in a synchronization object
AssigneeHewlett-Packard Development Company, L.P.
InventorChristopher P. Ruemmler
Life of this patent
Estimating the term…
Abstract
An embodiment of the invention provides an apparatus and a method of dynamically controlling the number of busy waiters in for a synchronization object. The apparatus and method perform the steps of increasing a number of allowed busy waiters if there is a waiter in a sleep state and there are no current busy waiters when a requester releases the synchronization object, and decreasing the number of allowed busy waiters if a busy waiter moves from a busy waiting state to the sleep state.
Claims21
A method of dynamically controlling a number of busy waiters waiting for a synchronization object, the method comprising:
- setting the number of allowed busy waiters to an initial value;
- increasing a number of allowed busy waiters if there is a waiter in a sleep state and there are no current busy waiters when a requester releases the synchronization object;
- and
- decreasing the number of allowed busy waiters if a busy waiter moves from a busy waiting state to the sleep state, wherein decreasing the number of allowed busy waiters comprises resetting the number of allowed busy waiters to the initial value, decrementing the number of allowed busy waiters, or both.
A microprocessor-based apparatus for dynamically controlling a number of busy waiters waiting for a synchronization object, the apparatus comprising:
- a processor;
- a scheduler configured to:
- set a number of allowed busy waiters to an initial value;
- increase a number of allowed busy waiters if there is a waiter in a sleep state and there are no current busy waiters when a requester releases the synchronization object;
- and
- decrease the number of allowed busy waiters if a busy waiter moves from a busy waiting state to the sleep state, wherein decreasing the number of allowed busy waiters comprises resetting the number of allowed busy waiters to the initial value, decrementing the number of allowed busy waiters, or both.
A microprocessor-based apparatus comprising a processor for dynamically controlling a number of busy waiters waiting for a synchronization object, the apparatus comprising:
- means for setting a number of allowed busy waiters to an initial value;
- means for increasing a number of allowed busy waiters if there is a waiter in a sleep state and there are no current busy waiters when a requester releases the synchronization object and for decreasing the number of allowed busy waiters if a busy waiter moves from a busy waiting state to the sleep state, wherein decreasing the number of allowed busy waiters comprises resetting the number of allowed busy waiters to the initial value, decrementing the number of allowed busy waiters, or both.
An article of manufacture comprising:
- a non-transitory machine-readable medium having stored thereon instructions when executed by a processor to:
- set a number of allowed busy waiters to an initial value;
- increase a number of allowed busy waiters if there is a waiter in a sleep state and there are no current busy waiters when a requester releases a synchronization object;
- and
- decrease the number of allowed busy waiters if a busy waiter moves from a busy waiting state to the sleep state, wherein decreasing the number of allowed busy waiters comprises resetting the number of allowed busy waiters to the initial value, decrementing the number of allowed busy waiters, or both.
Dependencies are inferred from the claim text.