×

DETERMINING WHEN TO RELEASE A LOCK FROM A FIRST TASK HOLDING THE LOCK TO GRANT TO A SECOND TASK WAITING FOR THE LOCK

  • US 20180011744A1
  • Filed: 07/06/2016
  • Published: 01/11/2018
  • Est. Priority Date: 07/06/2016
  • Status: Active Grant
First Claim
Patent Images

1. A computer program product for managing access to a resource in a computer system, the computer program product comprising a computer readable storage medium having computer readable program code embodied therein that when executed performs operations, the operations comprising:

  • determining whether a holding of a lock to the resource by a first task satisfies a condition and whether the lock is swappable;

    releasing the lock from the first task and granting the lock 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; and

    indicating the first task in the queue waiting for the lock in response to granting the lock to the second task.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×