Try running the deadlock simulator using the following command:
java deadlock a 2 2
Explain why a deadlock does not occur.
There are two additional process command files ("b0.dat" and "b1.dat") in the distribution. Run the deadlock simulator with this command:
java deadlock b 2 1 1
What happens?
Now try this.
java deadlock b 2 1 2
Why does the first command result in a deadlock but the second does not? Explain your answer in terms of what is going on in the process command files, b0.dat and b1.dat.