Question: Write a program in a language of your choice that prevents the deadlock from occurring. Your program should seek the following information from the user.
Write a program in a language of your choice that prevents the deadlock from occurring. Your program should seek the following information from the user. 1. Maximum available resources per resource type. 2. Total number of processes 3. Resources of each resource type that are currently allocated to each process 4. what additional resources of each resource type does each process need to finish the task at hand, After collecting the above information you program should check and see if the processes are able to complete the execution using the available resources or will they be deadlocked
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
