Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Chapter 7 Deadlocks Q 4 . Consider the following snapshot of a system: Process Allocation Max Available Need A B C D A B C

Chapter 7 Deadlocks
Q4. Consider the following snapshot of a system:
Process Allocation Max Available Need
A B C D A B C D A B C D
P0001200121520
P110001750
P213542356
P306320652
P400140656
Answer the following questions using the bankers algorithm:
a. What is the content of the matrix Need?
b. Show whether the system is in a safe state?
c. If a request from process P1 arrives for (0,4,2,0), can the request be granted immediately?
Q5. Consider the following snapshot of a system:
Allocation Max Need
A B C D A B C D
P030145117
P122103211
P231213321
P305104612
P442126325
Using the bankers algorithm, determine whether or not each of the following states is unsafe. If the state is safe, illustrate the order in which the processes may complete. Otherwise, illustrate why the state is unsafe.
a. Available =(0,3,0,1)
b. Available =(1,0,0,2)
Q6. Consider the following snapshot of a system:
Allocation Max Available Need
A B C D A B C D A B C D
P0200142123321
P131215252
P221032316
P313121424
P414323665
Answer the following questions using the bankers algorithm:
a. Illustrate that the system is in a safe state by demonstrating an order in which the processes may complete.
b. If a request from process P1 arrives for (1,1,0,0), can the request be granted immediately?
c. If a request from process P4 arrives for (0,0,2,0), 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

Oracle Database Foundations Technology Fundamentals For IT Success

Authors: Bob Bryla

1st Edition

0782143725, 9780782143720

More Books

Students also viewed these Databases questions

Question

Analyze the impact of labor unions on health care.

Answered: 1 week ago

Question

Assess three motivational theories as they apply to health care.

Answered: 1 week ago

Question

Discuss the history of U.S. labor unions.

Answered: 1 week ago