This program simulates the Banker's Algorithm with single resource for Deadlock Prevention and multiple resources for Deadlock Avoidance. In completion for CMSC125 MP1.
Initially on your cmd go to the path where you placed the java files and/or executable jar file.
If you will run this using the main class, type the following commands on the cmd.
1.) In case there are no .class files in your current directory, type javac *.java
2.) Then java MP01v2
However, if you choose to run this using the executable jar file, type java -jar MP01v2.jar on your current directory.