Method and system for using the event wait list anchor as a lock for events
First Claim
Patent Images
1. 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.
1 Assignment
0 Petitions
Accused Products
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.
-
Citations
20 Claims
-
1. 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. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. 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. - View Dependent Claims (10, 11, 12, 13, 14)
-
-
15. 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. - View Dependent Claims (16, 17, 18, 19, 20)
-
Specification