Let us suppose that there are five processes P1, P2, P3, P4 and P5 and three resources Printer, scanner and photocopier. Let us suppose that there are 25 instances of resource type Printer, 18 instances of resource type scanner and 21 instances of resource type photocopier. Let us consider that at time T= 0, system has the following state.
Use safety algorithm (which is invoked by banker’s algorithm) and write down all the intermediate steps to find out that either the system is in safe state or not. If system is in safe state then write down the safe sequence and if system is not in safe state then give reason to support your answer.
Note: Write down all the intermediate steps during finding out the safe sequence. If you will not write down the intermediate steps and if you will just write only the safe sequence then you will get zero marks.
Question 2: [Marks 10]
Let us suppose that there are five processes P1, P2, P3, P4 and P5 and three resources Printer, scanner and photocopier. Let us suppose that there are 24 instances of resource type Printer, 18 instances of resource type scanner and 21 instances of resource type photocopier. Let us consider that at time T= 0, system has the following state.
Use safety algorithm (which is invoked by banker’s algorithm) and write down all the intermediate steps to find out that either the system is in safe state or not. If system is in safe state then write down the safe sequence and if system is not in safe state then give reason to support your answer.
Note: Write down all the intermediate steps during finding out the safe sequence. If you will not write down the intermediate steps and if you will just write only the safe sequence then you will get zero marks.