Q: suppose your own example data for Banker's Algorithm.
Implement banker's algorithm by your familiar computer language, and run to check your example is in a safe state or not.
A: Program source code:
Running Result (safe state):
Analysis (safe state):
The sequence is not same as program result since the sequence of safe state is not crucial to the final result.
Running Result (unsafe state):
Analysis (unsafe state):
