The banker’s algorithm is a resource allocation and deadlock avoidance algorithm that tests for safety by simulating the allocation for predetermined maximum possible amounts of all resources, then makes a check to test for possible activities, before deciding whether allocation should be allowed to continue.
The motivation behind the project was to apply the knowledge, understanding and skills learned within CP386 operating systems course to a real project problem.
Installation requires the C programming language library & gcc compiler (instructions to install C in VSCode and gcc). The program includes a MakeFile that will compile the program with the command "make runq1" with gcc installed. Compilation parameters &
INSERT LINK See an example test case here.
Geeks for Geeks
Geeks for Geeks - Banker's Algorithm
Useful for gengtype in plugin mode.
Copyright (C) 2010 Free Software Foundation, Inc.
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Software Foundation; either version 3, or (at your option) any later
version.
GCC is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3. If not see
<http://www.gnu.org/licenses/>.
Contributed by Jeremie Salvucci <[email protected]>
and Basile Starynkevitch <[email protected]>