- 1、本文档共29页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
Deadlock Prevention, Avoidance, and Detection The Deadlock problem In a computer system deadlocks arise when members of a group of processes which hold resources are blocked indefinitely from access to resources held by other processes within the group. Deadlock example Pi requests one I/O controller and the system allocates one. Pj requests one I/O controller and again the system allocates one. Pi wants another I/O controller but has to wait since the system ran out of I/O controllers. Pj wants another I/O controller and waits. Conditions for deadlocks Mutual exclusion. No resource can be shared by more than one process at a time. Hold and wait. There must exist a process that is holding at least one resource and is waiting to acquire additional resources that are currently being held by other processes. No preemption. A resource cannot be preempted. Circular wait. There is a cycle in the wait-for graph. An example Graph-theoretic models Wait-for graph. Resource-allocation graph. Wait-for graph Resource allocation graph Wait-for graph and Resource-allocation graph conversion Any resource allocation graph with a single copy of resources can be transferred to a wait-for graph. Strategies for handling deadlocks Deadlock prevention. Prevents deadlocks by restraining requests made to ensure that at least one of the four deadlock conditions cannot occur. Deadlock avoidance. Dynamically grants a resource to a process if the resulting state is safe. A state is safe if there is at least one execution sequence that allows all processes to run to completion. Deadlock detection and recovery. Allows deadlocks to form; then finds and breaks them. Two types of deadlocks Resource deadlock: uses AND condition. AND condition: a process that requires resources for execution can proceed when it has acquired all those resources. Communication deadlock: uses OR condition. OR condition: a process that requires resources for execution can proceed when it has acquir
您可能关注的文档
- Data Manipulation Fairleigh Dickinson University数据处理狄金森州立大学.ppt
- Data Mining Casualty Actuarial Society数据挖掘意外保险精算学会.ppt
- Data Mining Approaches for Intrusion Detection入侵检测的数据挖掘方法.ppt
- DATA COMMUNICATIONS The Case of Malaysia马来西亚的数据通讯.ppt
- Data Parallel Algorithms Computer Science数据并行算法计算机科学.ppt
- Data Protection Act Every Pupil Always In Focus数据保护法每一个学生总是在焦点.ppt
- Data Quality and Precision University of Texas at Dallas数据质量和精度德克萨斯大学达拉斯.ppt
- Data Representation Methods UF CISE数据表示方法超精细.ppt
- Data Sources and Acquistion Feeding the GIS数据源和数据采集进GIS..ppt
- Data Speculation Support for a Chip Multiprocessor Soda Hall一种芯片多处理器的数据推测支持.ppt
- Dealing with Difficult People National Institutes of 处理困难的人国家机构.ppt
- Dean De Cock University of Iowa爱荷华大学的院长.ppt
- Dealing with Attendance issues TAG Home Page处理考勤问题标签主页.ppt
- Dear user, Universit libre de Bruxelles亲爱的用户大学和233布鲁塞尔.ppt
- Death and Dying Module 118 Murrieta Valley 死亡和垂死的模块118 穆列塔谷.ppt
- Dear Mama” Boston College“亲爱的妈妈”波士顿学院.ppt
- Dealing with Difference NOAA Workforce 处理的区别NOAA的劳动力.ppt
- Death of a Naturalist Biddick Academy死亡naturalist biddick Academy of a.ppt
- Death of a Naturalist HinchingbrookeDeath of a博物学家 hinchingbrooke.ppt
- Death of Low Mass Stars 8 Solar Masses or less低质量恒星的死亡8太阳质量或更少.ppt
最近下载
- T∕CACM 1137-2018 中医神志病临床诊疗指南 躯体形式障碍.pdf
- 与采购人配合沟通方案.docx VIP
- 晋剧《明公断》剧本.doc VIP
- 血液透析并发症脑出血ppt.pptx
- 航空与航天摄影技术课件.pptx
- 2024-2025学年深圳市人大附中新高一入学分班考试数学模拟试卷附答案解析.docx VIP
- 西部黄金伊犁有限责任公司金锌精矿综合回收及氰化渣无害化治理项目环境影响报告书.pdf VIP
- 不锈钢管安装施工方案.doc VIP
- 含碘对比剂静脉外渗护理管理实践指南解读.pptx VIP
- (精编)沪教版上海市小学二年级数学上册期末考试试题(共4套,已编好文档).pdf VIP
文档评论(0)