Adaptive spinning of computer program threads acquiring locks on resource objects by selective sampling of the locks
First Claim
Patent Images
1. A method for adjusting the spinning of computer process threads awaiting locks on objects in data processing systems comprising:
- monitoring values of a first set of parameters of a lock on an object, for which lock, threads requesting said lock are spinning;
applying said monitored values of said first set of parameters to adjust the spinning of said threads requesting said lock;
monitoring values of a second set of parameters relative to said lock on an object, for which lock, threads requesting said lock are spinning;
applying said values of said second set of parameters to determine whether the monitoring of said first set of parameters of said lock should be terminated; and
terminating the monitoring of said values of said first set of parameters of said lock while threads currently spinning continue spinning.
1 Assignment
0 Petitions
Accused Products
Abstract
In the dynamic sampling or collection of data relative to locks for which threads attempting to acquire the lock may be spinning so as to adaptively adjust the spinning of threads for a lock, an implementation for monitoring a set of parameters relative to the sampling of data of particular locks and selectively terminating the sampling when certain parameter values or conditions are met.
-
Citations
18 Claims
-
1. A method for adjusting the spinning of computer process threads awaiting locks on objects in data processing systems comprising:
-
monitoring values of a first set of parameters of a lock on an object, for which lock, threads requesting said lock are spinning; applying said monitored values of said first set of parameters to adjust the spinning of said threads requesting said lock; monitoring values of a second set of parameters relative to said lock on an object, for which lock, threads requesting said lock are spinning; applying said values of said second set of parameters to determine whether the monitoring of said first set of parameters of said lock should be terminated; and
terminating the monitoring of said values of said first set of parameters of said lock while threads currently spinning continue spinning. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A system for adjusting the spinning of computer process threads awaiting locks on objects in data processing, said system comprising:
-
a processor; and a computer memory holding computer program instructions which when executed by the processor perform the method comprising; monitoring values of a first set of parameters of a lock on an object, for which lock, threads requesting said lock are spinning; applying said monitored values of said first set of parameters to adjust the spinning of said threads requesting said lock; monitoring values of a second set of parameters relative to said lock on an object, for which lock, threads requesting said lock are spinning; applying said values of said second set of parameters to determine whether the monitoring of said first set of parameters of said lock should be terminated; and
terminating the monitoring of said values of said first set of parameters of said lock while threads currently spinning continue spinning. - View Dependent Claims (8, 9, 10, 11, 12)
-
-
13. A computer usable nod-transitory storage medium having stored thereon a computer readable program for adjusting the spinning of computer process threads awaiting locks on objects in a data processing system, wherein the computer readable program when executed on a computer causes the computer to:
-
monitor values of a first set of parameters of a lock on an object, for which lock, threads requesting said lock are spinning; apply said monitored values of said first set of parameters to adjust the spinning of said threads requesting said lock; monitor values of a second set of parameters relative to said lock on an object, for which lock, threads requesting said lock are spinning; apply said values of said second set of parameters to determine whether the monitoring of said first set of parameters of said lock should be terminated; and
terminate the monitoring of said values of said first set of first parameters of said lock while threads currently spinning continue spinning. - View Dependent Claims (14, 15, 16, 17, 18)
-
Specification