BUSY-WAIT TIME FOR THREADS
First Claim
Patent Images
1. A method comprising:
- determining whether at least one thread is spinning on a mutex lock associated with a condition variable; and
assigning, when the at least one thread is spinning on the mutex lock, a predetermined reduced busy-wait time for a subsequent thread spinning on the mutex lock.
4 Assignments
0 Petitions
Accused Products
Abstract
Method to selectively assign a reduced busy-wait time to threads is described. The method comprises determining whether at least one thread is spinning on a mutex lock associated with a condition variable and assigning, when the at least one thread is spinning on the mutex lock, a predetermined reduced busy-wait time for a subsequent thread spinning on the mutex lock.
-
Citations
15 Claims
-
1. A method comprising:
-
determining whether at least one thread is spinning on a mutex lock associated with a condition variable; and assigning, when the at least one thread is spinning on the mutex lock, a predetermined reduced busy-wait time for a subsequent thread spinning on the mutex lock. - View Dependent Claims (2, 3, 4)
-
-
5. A device comprising:
-
a processor; a memory coupled to the processor, the memory comprising; a thread identification module configured to at least determine whether at least one thread is waiting on a condition variable associated with a mutex lock; and a spin control module configured to assign, based on the determination by the thread identification module, at least one of a predetermined reduced busy-wait time and a default busy-wait time for a subsequent thread. - View Dependent Claims (6, 7, 8, 9, 10, 11)
-
-
12. A computer-readable medium having computer-executable instructions that when executed, perform acts comprising:
-
determining whether the mutex lock is associated with a condition variable, wherein the mutex lock is acquired by a thread; determining whether at least one of, one or more other threads are spinning on the mutex lock; and one or more other threads are waiting on the condition variable; and assigning, based on the determining, a predetermined reduced busy-wait time to a subsequent thread spinning on the mutex lock. - View Dependent Claims (13, 14, 15)
-
Specification