International Business Machines Corporation
Determining when to release a lock from a first task holding the lock to grant to a second task waiting for the lock
Last updated:
Abstract:
Provided are a computer program product, system, and method for determining when to release a lock from a first task holding the lock to grant to a second task waiting for the lock. A determination is made as to whether a holding of a lock to the resource by a first task satisfies a condition and whether the lock is swappable. The lock is released from the first task and granted to a second task waiting in a queue for the lock in response to determining that the holding of the lock satisfies the condition and that the lock is swappable. The first task is indicated in the queue waiting for the lock in response to granting the lock to the second task.
Status:
Grant
Type:
Utility
Filling date:
6 Jul 2016
Issue date:
26 Oct 2021