Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hi, Can I get help to solve this problem? (Operating System) A system composed of four processes, {P1, P2, P3, P4}, and three types of

Hi,

Can I get help to solve this problem? (Operating System)

A system composed of four processes, {P1, P2, P3, P4}, and three types of reusable resources, {R1, R2, R3}. The number of units of the resources are C=<3, 2, 2> respectfully. Current process states are as follows:

Process P1 holds one unit of R1 and requests one unit of R2.

Process P2 holds two unit of R2 and requests one unit of each of R1 and R3.

Process P3 holds one unit of R1 and requests one unit of R2.

Process P4 holds two unit of R3 and requests one unit of R1.

a) Show the resource allocation graph to represent current this system (1 points)

b) Is this system in deadlocked? Why/Why not

Consider the following snapshot of a system:

Allocation Max Available

A B C D A B C D A B C D

P0 2 0 0 1 4 2 1 2 3 3 2 1

P1 3 1 2 1 5 2 5 2

P2 2 1 0 3 2 3 1 6

P3 1 3 1 2 1 4 2 4

P4 1 4 3 2 3 6 6 5

Answer the following questions using the bankers algorithm

a) What is the content of the matrix Need?

b) Is the system in a safe state?

c) If a request from process P2 arrives for (1,1,0,1), can the request be granted immediately?

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

Database And Expert Systems Applications 33rd International Conference Dexa 2022 Vienna Austria August 22 24 2022 Proceedings Part 1 Lncs 13426

Authors: Christine Strauss ,Alfredo Cuzzocrea ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

3031124227, 978-3031124228

More Books

Students also viewed these Databases questions

Question

Show that (p q) (q r) (p r) is a tautology.

Answered: 1 week ago

Question

What two types of people would not be 'the public'?

Answered: 1 week ago

Question

recognise typical interviewer errors and explain how to avoid them

Answered: 1 week ago