Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 962 Bytes

README.md

File metadata and controls

30 lines (19 loc) · 962 Bytes

Banker's Algorithm GUI

This script is a GUI implementation of the Banker's algorithm, which is used to prevent deadlocks in computer systems. It is written in Python and uses the PyQt5 library for the GUI.

Requirements

This script requires the following dependencies to be installed:

  • Python 3.x
  • PyQt5

To install PyQt5, run the following command:

pip install PyQt5

Usage

To use the script, run the following command:

python bankers_algorithm_gui.py

This will open the GUI window. Enter the number of processes, number of resources, allocated resources, maximum resources, and available resources in their respective fields, and then click the "Run Banker's Algorithm" button. The script will then run the Banker's algorithm and display the results in the output field.

main view of the app

License

This script is provided under the MIT license. You can find the full license in the LICENSE file.