Skip to content

An algorithm that will allocate a set amount of resources to customers. The algorithm considers multiple factors when determining how many resources to use: the maximum requested resources, the other customers waiting for resources, and the possibility of the request.

Notifications You must be signed in to change notification settings

Nick-Vasquez-CSU/Bankers-Algorithm

Repository files navigation

Banker's Algorithm

WHAT WE LEARNED
  • How to utilize break, try, and error statements within an algorithm
  • How to predict whether a certain sequence of instructions within an algorithm can be detected as being possible or impossible to fulfill
  • How to manage the resource-request algorithm utilizing C++
  • How to avoid deadlock within an operating system
  • Tools: C++, Linux Terminal
HOW TO RUN THE PROJECT
  1. Download the repository and save it in a folder
  2. Within the linux terminal, input the following command to run the algorithm: g++ bankers_algorithm.cpp "INSERT TXT FILE NAME HERE" -o executable
  3. The txt files that can be loaded include: "bankers_large", "bankers_medium", "bankers_small", "bankers_tinier", and "bankers_tiny".

About

An algorithm that will allocate a set amount of resources to customers. The algorithm considers multiple factors when determining how many resources to use: the maximum requested resources, the other customers waiting for resources, and the possibility of the request.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages