BANKER'S AlGORITHM

Banker's Algorithm



NUMERICALS
image           


PRACTICE NUMERICALS


Question 1
Considering the following example of a system, check whether the following system is safe or not using banker’s algorithm. Determine the sequence if it is safe. Total number of resources are R1=4 R2= 4.

Q1

(a) P0,P2,P1
(b) P0,P1,P2
(c) P2,P1,P0
(d) P1,P2,P0

ANSWER:




Question 2
Considering the following example of a system, check whether the following system is safe or not using banker’s algorithm. Determine the sequence if it is safe. Total number of resources are R1=7, R2=7,R3=10

Q2

(a) P2,P1,P0
(b) P1,P2,P0
(c) P0,P2,P1
(d) P0,P1,P2

ANSWER:




Question 3
Considering the following example of a system, check whether the following system is safe or not using banker’s algorithm. Determine the sequence if it is safe.

Q3

(a) P1,P0,P2,P3,P4
(b) P0,P2,P3,P4,P1
(c) P4,P3,P0,P2,P1
(d) P4,P3,P0,P1,P2

ANSWER:




Question 4
Considering the following example of a system, check whether the following system is safe or not using banker’s algorithm. Determine the sequence if it is safe.

Q4

(a) P1,P3,P0,P2,P4
(b) P0,P1,P2,P4,P3
(c) P2,P4,P3,P0,P1
(d) P0,P2,P3,P4,P1

ANSWER:




Question 5
Considering the following example of a system, check whether the following system is safe or not using banker’s algorithm. Determine the sequence if it is safe.

Q5

(a) P1,P0,P4,P2,P3
(b) P2,P4,P3,P0,P1
(c) P1,P4,P0,P2,P3
(d) P0,P1,P2,P4,P3

ANSWER: