Method and system for using the event wait list anchor as a lock for events
AssigneeInternational Business Machines Corporation
InventorJames William Van Fleet
Life of this patent
Estimating the term…
Abstract
A method and apparatus for maintaining a list for threads which are awaiting their occurrence of event. First a thread is detected that desires to perform some type of action based upon the occurrence of an event. Thereafter, the value of an event list anchor is set to indicate that it is currently unavailable. Thereafter, the value of the event list anchor set equal to the identification of the second thread.
Claims20
A method of managing threads in a data processing system, comprising:
- detecting that a first thread desires to perform some type of action, based upon the occurrence of an event;
- locking an event list by setting an event list anchor equal to a first value, wherein the event list anchor is a head of the event list, and wherein the first value indicates that the event list is currently locked;
- and
- setting the event list anchor equal to an identification of the first thread, wherein said setting the event list anchor equal to the identification of the first thread causes the event list to be unlocked.
A data processing system, comprising:
- means for detecting that a first thread desires to perform some type of action, based upon the occurrence of an event;
- means for locking an event list by setting an event list anchor equal to a first value, wherein the event list anchor is a head of the event list, and wherein the first value indicates that the event list is currently locked;
- and
- means for unlocking the event list by setting the event list anchor equal to an identification of the first thread.
A computer program product on a computer usable medium, the computer usable medium having computer usable program means embodied therein, the computer usable program means comprising:
- means for detecting that a first thread desires to perform some type of action, based upon the occurrence of an event;
- means for locking an event list by setting an event list anchor equal to a first value, wherein the event list anchor is a head of the event list, and wherein the first value indicates that the event list is currently locked;
- and
- means for unlocking the event list by setting the event list anchor equal to an identification of the first thread.
Dependencies are inferred from the claim text.