Deadlock with three processes and three resources
Not what you're looking for?
We have 3 reusable resources. A,B,C. We have 3 process X,Y,Z, and each one of them uses periodically 2 of these 3 resources.
Proc. X takes A, then B and then uses both A,B and then releases them.
Proc. Y takes B, then C and then uses both B,C and then releases them.
Proc. Z takes C, then A and then uses both C,A and then releases them.
If 2 of the processes run "parallel" can we have deadlock? If yes, describe the scenario.
If 3 of the processes run "parallel", describe a scenario with a deadlock.
Purchase this Solution
Solution Summary
This solution examines the deadlock possibilities in the situation where there are three processes sharing three resources.
Solution Preview
The first question asks if we can get into a deadlock situation with two processes running. There are only three combinations that have two processes running:
XY
XZ
YZ
In the XY case X takes A and then B. Y takes B then C. If X has already taken B by the time that Y wants it then Y will have to wait. ...
Purchase this Solution
Free BrainMass Quizzes
Javscript Basics
Quiz on basics of javascript programming language.
Word 2010: Tables
Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.
C# variables and classes
This quiz contains questions about C# classes and variables.
Excel Introductory Quiz
This quiz tests your knowledge of basics of MS-Excel.
C++ Operators
This quiz tests a student's knowledge about C++ operators.