- 8
- 0
- 约1.47万字
- 约 68页
- 2020-12-30 发布于安徽
- 举报
Operating System Concepts In which order should we choose to abort? Priority of the process. How long process has computed, and how much longer to completion. Resources the process has used. Resources process needs to complete. How many processes will need to be terminated. Is process interactive or batch? Operating System Concepts Recovery from Deadlock: Resource Preemption(资源抢占) Selecting a victim – minimize cost. Rollback – return to some safe state, restart process for that state. Starvation – same process may always be picked as victim, include number of rollback in cost factor. Operating System Concepts Combined Approach to Deadlock Handling Combine the three basic approaches prevention avoidance detection allowing the use of the optimal approach for each of resources in the system. Operating System Concepts Partition resources into hierarchically ordered classes. Use most appropriate technique for handling deadlocks within each class. Operating System Concepts Traffic Deadlock for Exercise 8.4 Operating System Concepts Operating System Concepts Unsafe State In Resource-Allocation Graph Operating System Concepts Banker’s Algorithm Multiple instances. Each process must a priori claim maximum use. Operating System Concepts When a process requests a resource it may have to wait. When a process gets all its resources it must return them in a finite amount of time. Operating System Concepts Data Structures for the Banker’s Algorithm Available: Vector of length m. If available [j] = k, there are k instances of resource type Rj available. Max: n x m matrix. If Max [i,j] = k, then process Pi may request at most k instances of resource type Rj. Let n = number of processes, and m = number of resources types. Operating System Concepts Allocation: n x m matrix. If Allocation[i,j] = k then Pi is currently allocated k instances of Rj. Need: n x m matrix. If Need[i,j] = k, then Pi may need k more instances of Rj to complete its task. Need [i,j] = Max[
您可能关注的文档
- 信号与系统:3.07 主抽样定理.ppt
- 信号与系统:第8章系统的状态空间分析.ppt
- 信号与系统:第六章 离散系统z域分析.ppt
- 信号与系统:第四章 连续时间系统的S域分析.ppt
- 信号与系统:第五章 离散系统的时域分析.ppt
- 信号与系统:改3.04 典型非周期信号的频谱.ppt
- 信息系统分析与设计:第01章 绪论.ppt
- 信息系统分析与设计:第06章 功能分析.pptx
- 2011微原接口B卷答案.doc
- ERP原理与教程教学课件.ppt
- 食用菌工厂空间约束下的机器人导航系统设计.docx
- 2026年动力电池梯次利用行业分析报告.docx
- 风光互补LED路灯照明系统设计.docx
- 预见性护理联合微信平台在溃疡性结肠炎居家保留灌肠病人中的应用.docx
- 2026年氢能储运行业商业模式创新与市场机会分析报告.docx
- 2026年跨境电商行业供应链供应商管理合规评估报告.docx
- 2025年小学教师资格证《教育教学知识与能力》教学设计模板真题卷及解.docx
- 2025年小学教师资格证《教育教学知识与能力》教学设计真题及答案.docx
- 2026及未来5年人机界面软件项目投资价值分析报告.docx
- 2026年果汁饮料行业消费习惯变化趋势报告.docx
最近下载
- 关于层次分析法和灰色关联分析法的研究详解.doc VIP
- 高考一轮复习讲义第一讲学生 三角函数的概念同角三角函数关系式与诱导公式.doc VIP
- 高考数学 一轮复习讲义 任意角的三角函数.docx VIP
- 国际贸易实务实训教程.pdf VIP
- 高考数学 一轮复习讲义 -简单的三角恒等变换.docx VIP
- 如果要写年(带歌词完整版毛不易2024春晚歌曲) 高清钢琴谱五线谱.docx VIP
- 半边山半边海(原调版) 高清钢琴谱五线谱.docx VIP
- 下肢静脉血栓形成滤器术后护理.doc VIP
- 女性阻塞性睡眠呼吸暂停诊治专家共识 .pdf VIP
- 《我家是动物园》教案(2025—2026学年).docx VIP
原创力文档

文档评论(0)