Written Assignment 2 chapter 5

Written Assignment 2 chapter 5 - b – Deadlock can be...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Written assignment 2, chapter 5, page 165-168, exercises 2, 6, 10. 2 Deadlock – One example of deadlock can be if I called my mother and I stay on hold until she finished her call, and she is calling my sister but she is on hold with my sister. Starvation – one real world example is I may want to call a radio station to win tickets for a concert but the radio station is getting so many calls that my call cant go through. Race – An example of race in the real world, is 1 st world countries fighting or bidding for oil reserves outside their countries. 6 a – Deadlock can occur in this scenario if there is a traffic jammed at both intersection.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: b – Deadlock can be detected if traffic is not moving c – One way to prevent deadlock is by putting cameras or strips on the street and monitor how many cars are going through the traffic lights at each intersection. And by controlling traffic by how many cars go through 10 a - Job no Device allocated Maximum required Remaining needs 1 5 6 1 2 4 7 3 3 2 6 4 4 2 2 b - The system is unsafe d – The system only has 12 devices and 11 are already allocated, if Job 1 would need to require the maximum required the following jobs if needed the maximum would not get the resources and deadlock may occur....
View Full Document

This note was uploaded on 01/16/2012 for the course COS COS-352 taught by Professor Tabor during the Spring '11 term at Thomas Edison State.

Ask a homework question - tutors are online