首页> 外国专利> Deadlock avoidance mechanism in multi-threaded applications

Deadlock avoidance mechanism in multi-threaded applications

机译:多线程应用程序中的避免死锁机制

摘要

A computer-implemented method for implementing a deadlock avoidance mechanism to prevent a plurality of threads from deadlocking in a computer system wherein a first thread of the plurality of threads request for a first resource is provided. The computer-implemented method includes employing the deadlock avoidance mechanism to intercept the request. The computer-implemented method also includes examining a status of the first resource. The computer-implemented method further includes, if the first resource is owned, identifying an owner of the first resource, analyzing the owner of the first resource to determine if the owner of the first resource is requesting a second resource, and analyzing the second resource to determine if the second resource is owned by the first thread. The computer-implemented method yet also includes, if the first thread owns the second resource, preventing deadlocking by handling a potential deadlock situation.
机译:一种用于在计算机系统中实现避免死锁的机制以防止多个线程死锁的计算机实现的方法,其中提供了多个线程中的第一线程请求第一资源。该计算机实现的方法包括采用避免死锁机制来拦截该请求。该计算机实现的方法还包括检查第一资源的状态。该计算机实现的方法还包括:如果拥有第一资源,则标识第一资源的所有者;分析第一资源的所有者,以确定第一资源的所有者是否正在请求第二资源;以及分析第二资源。确定第二个资源是否归第一个线程所有。该计算机实现的方法还包括:如果第一线程拥有第二资源,则通过处理潜在的死锁情况来防止死锁。

著录项

  • 公开/公告号US2008209422A1

    专利类型

  • 公开/公告日2008-08-28

    原文格式PDF

  • 申请/专利权人 JOSEPH A. COHA;

    申请/专利号US20070712763

  • 发明设计人 JOSEPH A. COHA;

    申请日2007-02-28

  • 分类号G06F9/50;

  • 国家 US

  • 入库时间 2022-08-21 20:14:17

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号