Adaptive reader-writer lock
First Claim
1. A method for dynamically determining a lock in a multiprocessor, comprising:
- (a) maintaining first and second system-wide measures of read and write acquisitions;
(b) determining a lock based upon at least some of said measures;
(c) acquiring said lock for a first processing unit responsive to said determination; and
(d) releasing said lock responsive to a change in at least some of said system-wide measures of read and write acquisitions, wherein the step of releasing said lock includes switching said first processing unit to a different lock.
1 Assignment
0 Petitions
Accused Products
Abstract
A method and computer system for dynamically selecting an optimal lock mode in a multiprocessor environment. The method determines a quantity of read-side and write-side acquisitions, and evaluates the data to determine an optimal lock mode for efficiently operating the computer system while maintaining reduced overhead. The method incorporates data received from the individual units within a central processing system, the quantity of write-side acquisitions in the system, and data which has been subject to secondary measures, such as formatives of digital filters. The data subject to secondary measures includes, but is not limited to, a quantity of read-side acquisitions, a quantity of write-side acquisitions, and a quantity of read-hold durations. Based upon the individual unit data and the system-wide data, including the secondary measures, the operating system may select the most efficient mode of operation from among the locking modes available. Accordingly, efficiency of a computer system may be enhanced with the ability to selectively choose an optimal locking mode based upon selected and calculated parameters.
73 Citations
30 Claims
-
1. A method for dynamically determining a lock in a multiprocessor, comprising:
-
(a) maintaining first and second system-wide measures of read and write acquisitions; (b) determining a lock based upon at least some of said measures; (c) acquiring said lock for a first processing unit responsive to said determination; and (d) releasing said lock responsive to a change in at least some of said system-wide measures of read and write acquisitions, wherein the step of releasing said lock includes switching said first processing unit to a different lock. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15)
-
-
16. A computer system comprising:
-
multiple processors; first and second system-wide measures of read and write acquisitions of said processors; and a lock manager adapted to select a lock for acquisition by a first processing unit responsive to at least some of said measure and to release said acquired lock responsive to a change in at least some of said measures, wherein said manager release of said lock includes a switch of said first processing unit to a different lock. - View Dependent Claims (17, 18, 19, 20, 21, 22)
-
-
23. In a multiprocessor system, an article comprising:
-
a computer-readable signal bearing medium; means in the medium for maintaining first and second system-wide measures of read and write acquisitions; and means in the medium for selecting a lock for a first processing unit responsive to at least some of said measures, and for releasing said lock responsive to a change in at least some of said system-wide measures of read and write acquisitions, wherein said means for releasing said lock includes switching said first processing unit to a different lock. - View Dependent Claims (24, 25, 26, 27, 28, 29, 30)
-
Specification