Skip to content

JsT02/Bankers_algorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Joshua Thompson 11/20/2022

This project aims to implement the bankers algorithm. Included in this implementation is five processes and three unique resources. Resources are limited, and each process have a maximum amount of a resource they can allocate. This implementation is coded in C++.

Compared to my last project, I decided to put this all in a single file, separating the file by sections using comments.

I believe there is a flaw in this project. Unfortunately I no longer have the time to correct this error, but I shall leave the details here. All the resources available, resources allocated, and resources available were given in a table:

image

I translated the table into several vectors and matrices in order to solve this problem. However, when I attempted to find a safe sequence, I ended up finding none:

image

This does not make sense to me because it seems that by the table, there should be enough resources available for at least one possible safe sequence to be made. One other major issue I had with this project was using matrices. I have only used matrices once before and it was minimal use, so using matrices a lot in this project was tough.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages