0% found this document useful (0 votes)
115 views

Problems On Bankers Algorithm

Bankers problem os

Uploaded by

Maadhu Avati
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
115 views

Problems On Bankers Algorithm

Bankers problem os

Uploaded by

Maadhu Avati
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

3) Consider the following snapshot of a system:

Process Allocation Maximum 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 using Banker’s algorithm.

i) Is the system in safe state? If so, give the safe sequence.

ii) If process P2 requests (0,1,1,3) resources can it be granted immediately


4)

5)

You might also like