TAILIEUCHUNG - Lecture Operating system concepts (Sixth ed) - Chapter 8: Deadlocks

Lecture Operating system concepts (Sixth ed) - Chapter 8: Deadlocks. After studying this chapter you will be able to develop a description of deadlocks, which prevent sets of concurrent processes from completing their tasks; to present a number of different methods for preventing or avoiding deadlocks in a computer system. | Chapter 8 Deadlocks System Model Deadlock Characterization Methods for Handling Deadlocks Deadlock Prevention Deadlock Avoidance Deadlock Detection Recovery from Deadlock Combined Approach to Deadlock Handling Operating System Concepts Silberschatz Galvin and Gagne 2002 Bridge Crossing Example Traffic only in one direction. Each section of a bridge can be viewed as a resource. If a deadlock occurs it can be resolved if one car backs up preempt resources and rollback . Several cars may have to be backed up if a deadlock occurs. Starvation is possible. Operating System Concepts Silberschatz Galvin and Gagne 2002 System Model Resource types R1 R2 . . . Rm CPU cycles memory space I O devices Each resource type Rị has W instances. Each process utilizes a resource as follows request use release Operating System Concepts Silberschatz Galvin and Gagne 2002 Deadlock Characterization Deadlock can arise if four conditions hold simultaneously. Mutual exclusion only one process at a time can use a resource. Hold and wait a process holding at least one resource is waiting to acquire additional resources held by other processes. No preemption a resource can be released only voluntarily by the process holding it after that process has completed its task. Circular wait there exists a set P0 P1 . P0 of waiting processes such that P0 is waiting for a resource that is held by P1 P1 is waiting for a resource that is held by P2 . Pn_1 is waiting for a resource that is held by Pn and P0 is waiting for a resource that is held by P0. Operating System Concepts Silberschatz Galvin and Gagne 2002 Resource-Allocation Graph A set of vertices V and a set of edges E. V is partitioned into two types P P1 the set consisting of all the processes in the system. R R1 the set consisting of all resource types in the system. request edge - directed edge P1 Rj assignment edge - directed edge Rj Pi Operating System Concepts Silberschatz Galvin and Gagne 2002

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.