- 1、本文档共67页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
太原科技大学 胡静 Concurrency: Deadlock and Starvation Chapter 6 6.1Deadlock 1、definition: Permanent blocking of a set of processes that either compete for system resources or communicate with each other 2、Permanent: No efficient solution 3、conflicting: needs for resources by two or more processes 6.1.1Reusable Resources 1、definition、Used by only one process at a time and not depleted by that use. Processes obtain resources that they later release for reuse by other processes Processors, I/O channels, main and secondary memory, devices, and data structures such as files, databases, and semaphores Deadlock occurs if each process holds one resource and requests the other Example of Deadlock Another Example of Deadlock Space is available for allocation of 200Kbytes, and the following sequence of events occur Deadlock occurs if both processes progress to their second request 6.1.2Consumable Resources 1、definition: Created (produced) and destroyed (consumed) Example: Interrupts, signals, messages, and information in I/O buffers Deadlock may occur if a Receive message is blocking May take a rare combination of events to cause deadlock Example of Deadlock Deadlock occurs if receive is blocking 6.1.3Resource Allocation Graphs Directed graph( 有向图) that depicts a state of the system of resources and processes Resource Allocation Graphs 6.1.4Conditions for Deadlock Mutual exclusion Only one process may use a resource at a time Hold-and-wait A process may hold allocated resources while awaiting assignment of others No preemption No resource can be forcibly removed form a process holding it Conditions for Deadlock Circular wait A closed chain of processes exists, such that each process holds at least one resource needed by the next process in the chain Possibility of Deadlock Mutual Exclusion No preemption Hold and wait Existence of Deadlock Mutual Exclusion No preemption Hold and wait Circular wait 6.2 Deadlock Prevention 1、Mutual Exclusion Must be supported by the op
您可能关注的文档
- 诚信演讲.ppt
- 国培2013.ppt
- 13条最尖刻的书评.ppt
- 第二单元1:大同.ppt
- 第十五章 控制电机.ppt
- 魅力广告语.ppt
- 沈大安 有效教学.ppt
- 河南科技大学精品课程数控加工2.ppt
- 自动控制原理(三).ppt
- 故都的秋教学用.ppt
- 市人大主任、区委社会工作部关于2025年民主生活会“四个带头”个人对照检视材料(含反面典型案例剖析)2篇文.docx
- 市直单位领导班子2025年民主生活会“四个带头”对照检视材料与交通运输局副局长民主生活会四个方面自我批评意见32条(两篇文).docx
- 区委社会工作部2025年民主生活会“四个带头”对照查摆剖析材料(含反面典型案例剖析)与县委班子“四个带头”对照检查发言材料(含意识形态)2篇文.docx
- 2025年民主生活会、组织生活会相互批评意见建议【65条】与国有企业普通党员围绕“四个方面”组织生活会个人对照检查发言材料2篇例文.docx
- 党委副书记2025年民主生活会“四个带头”个人对照检视发言材料(含反面典型案例剖析)与市投资促进局党支部书记“四个带头”个人对照检查发言材料【含意识形态】2篇文.docx
- 2025年国有企业党委书记民主生活会四个方面自我批评意见40条与普通党员组织生会五个方面自我批评意见25条.docx
- 市民政局副书记、政数局副书记2025年民主生活会围绕“四个带头七个方面”个人对照检查发言材料【含典型事例剖析】2篇文.docx
- 生产一线党员2025年组织生活会围绕“五个方面”个人对照检查发言材料与宣传委员“四个带头”对照检查材料(含意识形态)2篇例文.docx
- 离退休党工委副书记、市工信局副书记2025年民主生活会围绕“四个带头七个方面”个人对照检查发言材料【含典型事例剖析】2篇文.docx
- 农业农村局2025年民主生活会、组织生活会意见建议38条与社会工作部民主生活会六个方面自我批评意见30条2篇文.docx
文档评论(0)