Visual implementation of the banker's algorithm using Processing.py
Lines that end at the dots represent an allocated resource unit and lines that end at the resource's box represent a request for a unit of said resource.
- Demo 1 (Safe Sequence):
- Demo 2 (Deadlock):