Question

operating system

Consider the following three concurrent processes and resource requirements:

Process P0 ultimately needs resource R1 and R3.
Process P1 ultimately needs resource R2 and R3.
Process P2 ultimately needs resource R1 and R3.

a) (10 points) Give an allocation order for the resource needs that will result in deadlock.
b) (10 points) Draw the resource allocation graph for the order you specified above.
0 0
Add a comment Improve this question Transcribed image text
Answer #1
1. Assign resource R1 to P0, R2 to P1, and R3 to P2. This results in deadlock because P0 and P2 will be waiting on each other to finish indefinitely.

2. Show this allocation in a graph.
answered by: Juan Carlos
Add a comment
Know the answer?
Add Answer to:
operating system
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT