Question
1. Consider two cooperating processes P5 and P6. Suppose that, at any time, P6 want to enter its critical section. Write an algorithm using Petersons
1. Consider two cooperating processes P5 and P6. Suppose that, at any time, P6 want to enter its critical section. Write an algorithm using Petersons solution which shows that P6 can finally enter into its criticalsection. Consider the turn value for P5 to be 10 and P6 to be 12.
2. Consider a system with three processes P1, P2 and P3. There are four resources, R1, R2, R3 and R4. R3 has two instances. Other resources have single instance. P1 is holding R1 and R2. P2 is holding one instances of R3 and requesting R2. P3 is holding one instances of R3 and requesting R1. Draw the resource allocation graph. Is it a deadlock situation? Justify your answer.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started