Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

6 . 5 Given the following state for the Banker's algorithim: 6 processes p 0 through p 5 4 resources types: A ( 1 5

6.5 Given the following state for the Banker's algorithim: 6 processes p0 through p5
4 resources types: A(15 instances); B(6 instances); C(9instances); D(10 instances)
Snapshot at time T0:
Available
A B C D
6354
The first four columns of the 68 matrix comprise the Allocation matrix. The final four
columns comprise the Claim matrix. The Need matrix referred to in part (b) is the same
as the C-A matrix described in the text.
a. Verify that the Available array has been correctly calculated.
b. Calculate the Need matrix.
c. Show that the current state is safe, that is, show a safe sequence of processes. In
addition, to the sequence show how the Available (working array) changes as each
process terminates.
d. Given the request (3,2,3,3) from Process P5. Should this request be granted? Why
or why not?
6.6. In the code below, three processes are competing for six resources labeled A to F.
a. Using a resource allocation graph (see Figures 6.5 and 6.6), show the possibility of
a deadlock in this implementation.
b. Modify the order of some of the get requests to prevent the possibility of any dead-
lock. You cannot move requests across procedures, only change the order inside
each procedure. Use a resource allocation graph to justify your answer.
image text in transcribed

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

Fundamentals Of Database Systems

Authors: Ramez Elmasri, Sham Navathe

4th Edition

0321122267, 978-0321122261

More Books

Students also viewed these Databases questions