Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Suppose that the state of a computer system is described by the following characteristics: The system comprises of five processes and four types of resources.

image text in transcribed

Suppose that the state of a computer system is described by the following characteristics: The system comprises of five processes and four types of resources. PO-P4 denotes the set of processes R1-R4 denotes the set of resource types Total Existing Resources are: Resource types R1 R2 R3 R4 The number of items of each type: 7 During the launch, the processes declared their maximum requests: Max Resource types Processes RI R2 R3 PO 3 3 P12 P2 3 2 3 P3 Currently used resources are described as follows: (Allocation Resource types Processes R1 R2 R3 0 0 P21 P3 1 P4 20 Assignment: a) Compute the [Available vector. b) Compute the [Need matrix. c) Using the bankers' algorithm, determine if the system is currently in a safe state. If so, give a safe sequence of the process In addition, show how the Available] (Working) vector changes as each process terminates d) If the request (1, 1, 0, 0] from P1 arrives, will it be correct to grant the request? Justify your decision using the bankers' algorithm Suppose that the state of a computer system is described by the following characteristics: The system comprises of five processes and four types of resources. PO-P4 denotes the set of processes R1-R4 denotes the set of resource types Total Existing Resources are: Resource types R1 R2 R3 R4 The number of items of each type: 7 During the launch, the processes declared their maximum requests: Max Resource types Processes RI R2 R3 PO 3 3 P12 P2 3 2 3 P3 Currently used resources are described as follows: (Allocation Resource types Processes R1 R2 R3 0 0 P21 P3 1 P4 20 Assignment: a) Compute the [Available vector. b) Compute the [Need matrix. c) Using the bankers' algorithm, determine if the system is currently in a safe state. If so, give a safe sequence of the process In addition, show how the Available] (Working) vector changes as each process terminates d) If the request (1, 1, 0, 0] from P1 arrives, will it be correct to grant the request? Justify your decision using the bankers' algorithm

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_2

Step: 3

blur-text-image_3

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

Advanced MySQL 8 Discover The Full Potential Of MySQL And Ensure High Performance Of Your Database

Authors: Eric Vanier ,Birju Shah ,Tejaswi Malepati

1st Edition

1788834445, 978-1788834445

More Books

Students also viewed these Databases questions

Question

socialist egalitarianism which resulted in wage levelling;

Answered: 1 week ago

Question

soyuznye (all-Union, controlling enterprises directly from Moscow);

Answered: 1 week ago