08_LCD_Slide_Handout_1(3).pdf

• 2

This preview shows pages 1–2. Sign up to view the full content.

Deadlock Handling Deadlock Avoidance Deadlock Detention and Recovery 1 _________________________ ___________________________ ___________________________ ___________________________ ___________________________ ___________________________ ___________________________ ___________________________ ___________________________ *Property of STI J0024 In deadlock avoidance, deadlocks may occur but the operating system will avoid actions that could lead to deadlocks. Unsafe state a state that may lead to a deadlock and must be avoided Safe state a state that has a scheduling order or a sequence of processes in which every process in the sequence can complete its execution 2 __________________________ ___________________________ ___________________________ ___________________________ ___________________________ ___________________________ ___________________________ ___________________________ ___________________________ *Property of STI J0024 Assume that there are three processes and ten resources of the same type. The table below shows the current resource allocation. Banker’s Algorithm used to determine if the current state of the system is safe or not 3 _________________________ ___________________________ ___________________________ ___________________________ ___________________________ ___________________________ ___________________________ ___________________________ ___________________________ *Property of STI J0024 Example: A system has 4 processes and 10 resources of the same type. Assume the following resource allocation table. The values for the variables are: need [1] = 6 1 = 5 need [2] = 5 1 = 4 need [3] = 4 2 = 2 need [4] = 7 3 = 4 available = 10 – (1 + 1 + 2 + 3) = 3 This is the current state of the system.

This preview has intentionally blurred sections. Sign up to view the full version.

This is the end of the preview. Sign up to access the rest of the document.
• Winter '15
• Imafidon

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern