首页> 外国专利> DETECTION OF DEADLOCK AMONG WAITING TASKS IN A MULTI- PROCESSING, MULTIPROGRAMMING CPU ENVIRONMENT

DETECTION OF DEADLOCK AMONG WAITING TASKS IN A MULTI- PROCESSING, MULTIPROGRAMMING CPU ENVIRONMENT

机译:在多进程,多程序CPU环境中检测等待任务中的死锁

摘要

The wait relations among N tasks in a multiprocessing, multiprogramming CPU environment are conformed to a vector of N+1 fields recording which tasks in a system are active and upon what other task any given task directly waits. The vector may be stored in a global register. Positions 1 through N are assigned to the N tasks such that a value p in position r means that task r is waiting directly on task p. One value j of the possible values 0,1,2, . . . , N+1 is designated to indicate an active task. Position j always shows the value j. Without loss of generality and to facilitate the discussion j is assumed to be 0. Thus, the value 0 in register position r means that task r is not waiting and position 0 always has the value 0. The presence of any deadlocks (closures) among the wait relations can always be detected by the computing system by making repeated translations of the vector fields within and upon themselves in no more than log2(N+1) iterations. In this regard, log2(N+1) denotes the smallest integer equal to or greater than the base 2 logarithm. The translation of fields within and upon themselves means that for each global register position r containing pointer p, then the contents g of register position p are substituted as the new contents of position r for the iteration 0/=r, p, g/=N.
机译:在多处理,多程序CPU环境中,N个任务之间的等待关系符合N + 1字段的向量,该向量记录系统中哪些任务处于活动状态,以及给定任务直接在其他什么任务上等待。向量可以存储在全局寄存器中。将位置1到N分配给N个任务,以便位置r中的值p表示任务r直接在任务p上等待。可能值0,1,2,...中的一个值j 。 。 N + 1被指定为指示活动任务。位置j始终显示值j。在不失一般性的前提下,为了方便讨论,将j假定为0。因此,寄存器位置r中的值为0表示任务r没有等待,位置0始终为值0。其中存在任何死锁(关闭)计算系统始终可以通过不超过log2(N + 1)次迭代对向量域进行内部和自身重复转换来检测等待关系。就这一点而言,log2(N + 1)表示等于或大于以2为底的对数的最小整数。字段内部和字段本身的转换意味着对于每个包含指针p的全局寄存器位置r,然后将寄存器位置p的内容g替换为位置0的新内容,用于迭代0

著录项

  • 公开/公告号AU3719378A

    专利类型

  • 公开/公告日1979-12-20

    原文格式PDF

  • 申请/专利权人 INTERNATIONAL BUSINESS MACHINES CORPORATION;

    申请/专利号AU19780037193

  • 发明设计人 PAUL RUDOLF ROEVER;

    申请日1978-06-16

  • 分类号G06F9/18;

  • 国家 AU

  • 入库时间 2022-08-22 18:02:45

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号