ADJUSTMENT OF A SLEEP DURATION FOR A PROCESS BASED ON AN EXPECTED TIME FOR SECURING A SPINLOCK
1 Assignment
0 Petitions
Accused Products
Abstract
A computational device maintains a spinlock for exclusive access of a resource by a process of a plurality of processes. In response to determining by the process that a turn for securing the spinlock has not arrived for the process, a sleep duration is determined for the process, prior to making a next attempt to secure the spinlock.
-
Citations
38 Claims
-
1-20. -20. (canceled)
-
21. A method, comprising:
-
maintaining, by a computational device, a spinlock for exclusive access of a resource by a process of a plurality of processes; and in response to determining by the process that a turn for securing the spinlock has not arrived for the process, determining a sleep duration for the process based on a number of tickets remaining to be processed for securing the spinlock and an average time duration to process a ticket. - View Dependent Claims (22, 23, 24, 25, 26)
-
-
27. A system, comprising:
-
a memory; a processor coupled to the memory, wherein the processor performs operations, the operations comprising; maintaining a spinlock for exclusive access of a resource by a process of a plurality of processes; and in response to determining by the process that a turn for securing the spinlock has not arrived for the process, determining a sleep duration for the process based on a number of tickets remaining to be processed for securing the spinlock and an average time duration to process a ticket. - View Dependent Claims (28, 29, 30, 31, 32)
-
-
33. A computer program product, the computer program product comprising a computer readable storage medium having computer readable program code embodied therewith, the computer readable program code configured to perform operations, the operations comprising:
-
maintaining a spinlock for exclusive access of a resource by a process of a plurality of processes; and in response to determining by the process that a turn for securing the spinlock has not arrived for the process, determining a sleep duration for the process based on a number of tickets remaining to be processed for securing the spinlock and an average time duration to process a ticket. - View Dependent Claims (34, 35, 36, 37, 38)
-
Specification