Program concurrency control using condition variables
AssigneeVMware, Inc.
InventorsKeith M. Adams, Ole Agesen
Life of this patent
Estimating the term…
Loading patent…
AssigneeVMware, Inc.
InventorsKeith M. Adams, Ole Agesen
Estimating the term…
A condition variable for controlling access to a critical section of computer code by a plurality of concurrently running execution threads comprises a data structure with a head list linking threads in an arrival order and a tail list linking threads in a reverse arrival order. Together, the head and tail lists together indicate which threads are currently blocked on the condition variable. A wait counter indicates how many threads are currently linked in the data structure and a signal counter indicates how many times the condition variable has been signaled for waiting threads that are currently linked in the data structure. The head and tail pointers, as well as the wait and signal counters, may be implemented as fields of a single, atomically updatable data word.
In a computer system that has at least one processor with at least one atomic instruction for atomically changing the contents of a data word, and a plurality of threads of execution running concurrently on the processor(s), a condition variable comprising:
In a computer system that has at least one processor with at least one atomic instruction for atomically changing the contents of a data word, and a plurality of threads of execution running concurrently on the processor(s), a semaphore being associated with each thread, a condition variable comprising:
Dependencies are inferred from the claim text.