Homework 4 – Banker’s algorithm
Implement the Banker's algorithm for deadlock avoidance, with a given set of N processes
(N<10, processes are P1, P2, …, PN) and M resource types (M<10, resources are R1, R2, …, RM). Use Java or C/C++ for the implementation, with a simple interface, where the user only supplies the name of the input file (text file, say “input.txt”). The program reads all the necessary input data from that file. You are free to choose the format of the input file, just make sur