This project implements the Banker's Algorithm, a resource allocation and deadlock avoidance algorithm. It includes both parts of the algorithm:
- Finding a Safe Sequence: Ensuring that the system is in a safe state.
- Handling Resource Requests: Processing resource requests to maintain system safety.
- Safe Sequence Detection: Determines if the system is in a safe state by finding a safe sequence of resource allocation.
- Resource Request Handling: Checks if a new resource request can be safely granted without causing a deadlock.
- Input: Provide the total processes, total resources, allocated resources, and maximum resources in the system.
- Output: A safe sequence of processes, if one exists.
- Input: Provide the resource request from a process.
- Output: Whether the request can be safely granted or not.