1 / 2

1 、在银行家算法中,若出现下面的资源分配情况: (1) 该状态时否安全? (2) 当进程 P2 提出请求 Request(1,2,2,2) 后,系统能否将资源分配给它?

作业. 1 、在银行家算法中,若出现下面的资源分配情况: (1) 该状态时否安全? (2) 当进程 P2 提出请求 Request(1,2,2,2) 后,系统能否将资源分配给它? (3) 如果系统立即满足 P2 的上述要求,则系统是否立即进入死锁状态?. 作业. 2 、假定某计算机系统有 R1 设备 3 台, R2 设备 4 台,它们被 P1 、 P2 、 P3 和 P4 这 4 个进程互斥共享,且已知这 4 个进程均以下面所示的顺序使用现有设备: --〉 申请 R1--〉 申请 R2--〉 申请 R1--〉 释放 R1--〉 释放 R2--〉 释放 R1--〉

jewel
Télécharger la présentation

1 、在银行家算法中,若出现下面的资源分配情况: (1) 该状态时否安全? (2) 当进程 P2 提出请求 Request(1,2,2,2) 后,系统能否将资源分配给它?

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 作业 1、在银行家算法中,若出现下面的资源分配情况: (1) 该状态时否安全? (2) 当进程P2提出请求 Request(1,2,2,2)后,系统能否将资源分配给它? (3) 如果系统立即满足P2的上述要求,则系统是否立即进入死锁状态?

  2. 作业 2、假定某计算机系统有R1设备3台,R2设备4台,它们被P1、P2、P3和P4这4个进程互斥共享,且已知这4个进程均以下面所示的顺序使用现有设备: --〉申请R1--〉申请R2--〉申请R1--〉释放R1--〉释放R2--〉释放R1--〉 请问系统运行过程中是否可能产生死锁?如果可能的话,请举出一种情况,并画出表示该死锁状态的进程-资源图。

More Related