Wake-and-go mechanism with data monitoring
First Claim
1. A method, in a data processing system, for performing a wake-and-go operation, the method comprising:
- detecting a thread that is waiting for an event associated with a target address, wherein the event is based on a value being written to the target address that relates to an expected data value by a comparison type;
writing, by a wake-and-go mechanism, an entry in a wake-and-go storage array, wherein the entry comprises the target address, the expected data value, and the comparison type;
placing the thread in a sleep state;
responsive to an event that modifies a data value at the target address, performing a comparison based on the value being written, the expected value, and the comparison type; and
responsive to the comparison matching, placing the thread in a non-sleep state.
2 Assignments
0 Petitions
Accused Products
Abstract
A wake-and-go mechanism is provided for a data processing system. The wake-and-go mechanism recognizes a programming idiom, specialized instruction, operating system call, or application programming interface call that indicates that a thread is waiting for an event. The wake-and-go mechanism updates a wake-and-go array with a target address, expected data value, and comparison type associated with the event. The thread then goes to sleep until the event occurs. The wake-and-go array may be a content addressable memory (CAM). When a transaction appears on the symmetric multiprocessing (SMP) fabric that modifies the value at a target address in the CAM, logic associated with the CAM performs a comparison based on the data value being written, expected data value, and comparison type.
-
Citations
17 Claims
-
1. A method, in a data processing system, for performing a wake-and-go operation, the method comprising:
-
detecting a thread that is waiting for an event associated with a target address, wherein the event is based on a value being written to the target address that relates to an expected data value by a comparison type; writing, by a wake-and-go mechanism, an entry in a wake-and-go storage array, wherein the entry comprises the target address, the expected data value, and the comparison type; placing the thread in a sleep state; responsive to an event that modifies a data value at the target address, performing a comparison based on the value being written, the expected value, and the comparison type; and responsive to the comparison matching, placing the thread in a non-sleep state. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A data processing system, comprising:
-
a wake-and-go mechanism; and a wake-and-go array, wherein the wake-and-go mechanism is configured to; detect a thread that is waiting for an event associated with a target address, wherein the event is based on a value being written to the target address that relates to an expected data value by a comparison type; write an entry in the wake-and-go storage array, wherein the entry comprises the target address, the expected data value, and the comparison type; place the thread in a sleep state; responsive to an event that modifies a data value at the target address, performing a comparison based on the value being written, the expected value, and the comparison type; and responsive to the comparison matching, place the thread in a non-sleep state. - View Dependent Claims (8, 9, 10, 11, 12)
-
-
13. A computer program product comprising a non-transitory computer storage medium having a computer readable program stored thereon, wherein the computer readable program, when executed on a computing device, causes the computing device to:
-
detect a thread that is waiting for an event associated with a target address, wherein the event is based on a value being written to the target address that relates to an expected data value by a comparison type; write, by a wake-and-go mechanism, an entry in a wake-and-go storage array, wherein the entry comprises the target address, the expected data value, and the comparison type; place the thread in a sleep state; responsive to an event that modifies a data value at the target address, performing a comparison based on the value being written, the expected value, and the comparison type; and responsive to the comparison matching, place the thread in a non-sleep state. - View Dependent Claims (14, 15, 16, 17)
-
Specification