Resource A has 10 instances, and resource B has 12 instances. Each of them claims amaximum need of resource (Max), while each of them currently holds a number of instances(Allocation). Consider the following snapshot of a system:Allocation MaxA B A BP0 1 2 1 3P1 0 0 5 0P2 5 4 8 6P3 3 2 5 2Answer the following questions using the banker’s algorithm:
a)How many instances of resource A and B are available respectively?b) What are the max additional needs of resource A and B for each process?c) Is the system in a safe state? Explain your reason.d) If a request from process P1 arrives for (1, 0), can the request be granted immediately?Explain your reason.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here