Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider a system with 4 types of resources R1 (3 units), R2 (2 units), R3 (3 units) and R4 (2 units). A non-preemptive resource allocation

image text in transcribedimage text in transcribed

Consider a system with 4 types of resources R1 (3 units), R2 (2 units), R3 (3 units) and R4 (2 units). A non-preemptive resource allocation policy is used. At any given instance, a request is not entertained if it cannot be completely satisfied. Three processes P1, P2 and P3 are executed independently and request the resources as in Table Q15. Table Q15 Process P1: t=0 : requests 2 units of R2 t=1 : requests 1 unit of R3 t=3 : requests 2 units of R1 t=5 : releases 1 unit of R2 and 1 unit of R1 t=7 : releases 1 unit of R3 t=8 : requests 2 units of R4 t=10: Finishes Process P2: t=0 : requests 2 units of R3 t=2 : requests 1 unit of R4 t=4 : requests 1 unit of R1 t=6 : releases 1 unit of R3 t=8 : Finishes Process P3: t=0 : requests 1 unit of R4 t=2 : requests 2 units of R1 t=5 : releases 2 units of R. t=7 : requests 1 unit of R2 t=8 : requests 1 unit of R3 t=9 : Finishes If all the three processes run concurrently starting at time t=0, (a) Draw the resource allocation graph at time: (i) t=8 (ii) t=9 (iii) t=10 Consider a system with 4 types of resources R1 (3 units), R2 (2 units), R3 (3 units) and R4 (2 units). A non-preemptive resource allocation policy is used. At any given instance, a request is not entertained if it cannot be completely satisfied. Three processes P1, P2 and P3 are executed independently and request the resources as in Table Q15. Table Q15 Process P1: t=0 : requests 2 units of R2 t=1 : requests 1 unit of R3 t=3 : requests 2 units of R1 t=5 : releases 1 unit of R2 and 1 unit of R1 t=7 : releases 1 unit of R3 t=8 : requests 2 units of R4 t=10: Finishes Process P2: t=0 : requests 2 units of R3 t=2 : requests 1 unit of R4 t=4 : requests 1 unit of R1 t=6 : releases 1 unit of R3 t=8 : Finishes Process P3: t=0 : requests 1 unit of R4 t=2 : requests 2 units of R1 t=5 : releases 2 units of R. t=7 : requests 1 unit of R2 t=8 : requests 1 unit of R3 t=9 : Finishes If all the three processes run concurrently starting at time t=0, (a) Draw the resource allocation graph at time: (i) t=8 (ii) t=9 (iii) t=10

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases A Beginners Guide

Authors: Andy Oppel

1st Edition

007160846X, 978-0071608466

More Books

Students also viewed these Databases questions

Question

Brief the importance of span of control and its concepts.

Answered: 1 week ago

Question

What is meant by decentralisation?

Answered: 1 week ago

Question

1. How might volunteering help the employer and the employee?

Answered: 1 week ago