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.
(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
(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.
(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.
(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.