Question: To handle Deadlocks we can use protocols to prevent or avoid deadlocks so that no deadlocks will occur. In our assignment we had the
To handle Deadlocks we can use protocols to prevent or avoid deadlocks so that no deadlocks will occur. In our assignment we had the problem of the intersections with the cars in a deadlock. We were asked to make a suggestion on how to make a rule to no longer have deadlocks happen. One common solution given was to have a rule that said a car can not enter an intersection unless there is enough room for it to go fully through to the other side. This solution will work. One could argue that this is an example of a deadlock-prevention approach, but I will argue that is more an example of a deadlock- avoidance approach. 1. What is the difference between a deadlock-prevention and deadlock-avoidance approach.? 2. Make the argument for me that the rule given above is an example of deadlock-avoidance approach in the context of the intersection deadlock problem.
Step by Step Solution
3.40 Rating (162 Votes )
There are 3 Steps involved in it
1 Deadlock prevention techniques aim to ensure that deadlocks will never occur This is usually done ... View full answer
Get step-by-step solutions from verified subject matter experts
