Implementation of Banker's Algorithm, used to prevent deadlocks. Method involves use of mutex and semophores