首页> 外国专利> DETERMINING WHEN TO RELEASE A LOCK FROM A FIRST TASK HOLDING THE LOCK TO GRANT TO A SECOND TASK WAITING FOR THE LOCK

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

机译:确定何时将锁从第一次持有锁释放到第二次等待锁

摘要

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.
机译:提供了一种计算机程序产品,系统和方法,用于确定何时从持有该锁的第一任务释放锁以准予等待该锁的第二任务。确定第一任务对资源的锁定是否满足条件以及该锁定是否可交换。响应于确定该锁的持有满足条件并且该锁是可交换的,将该锁从第一任务释放,并授予在队列中等待该锁的第二任务。响应于将锁定授予第二个任务,在队列中指示等待锁定的第一个任务。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号