Dynamically controlling the number of busy waiters in a synchronization object
First Claim
Patent Images
1. 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.
2 Assignments
0 Petitions
Accused Products
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.
29 Citations
21 Claims
-
1. 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. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. 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. - View Dependent Claims (11, 12, 13, 14, 15, 16, 17, 18, 19)
-
-
20. 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.
-
-
21. 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.
-
Specification