Skip to content

Commit a12a18c

Browse files
committed
added readme
1 parent a9eb5c2 commit a12a18c

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

README.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# :bank: Banker's Algorithm :books:
2+
3+
Banker’s Algorithm, which is a deadlock avoidance algorithm. It is called the Banker’s Algorithm, because it could be used by a bank to make sure that money is allocated in such a way that all customer needs are met. When a new process enters the system, it declares the maximum number of instances that are needed. This number cannot exceed the total number of resources in the system. If the process can be accommodated based upon the needs of the system, then resources are allocated, otherwise the process must wait. The algorithm is actually made up of two separate algorithms: the safety algorithm and the resource allocation algorithm.
4+
5+
*This program is tested using Borland C++ Compiler.*
6+
7+
## File Structure
8+
| File Name | Description |
9+
| --- | --- |
10+
| BANKER.CPP | main application |
11+
| CLASS.CPP | banker class declaration |
12+
| DEFINE.CPP | banker class definitions |
13+
| GRAPHICS.CPP | graphics related functions |
14+
15+
16+
## Screenshots
17+
### Application
18+
> Main Application Window
19+
20+
![Main Application Window](screenshots/main-screen.png "Main Application Window")
21+
22+
### Algorithm
23+
24+
> Safe Sequence Check
25+
26+
![Safe Sequence Check](screenshots/safe-sequence-check.png "Safe Sequence Check")
27+
28+
> Safe Sequence Result
29+
30+
![Safe Sequence Result](screenshots/safe-sequence-result.png "Safe Sequence Result")
31+
32+
> Algorithm Inprogress
33+
34+
![Algorithm Inprogress](screenshots/inprogress.png "Algorithm Inprogress")
35+
36+
> Current State
37+
38+
![Current State](screenshots/current-state.png "Current State")
39+
40+
### Extra Flows
41+
> Input Validation
42+
43+
![Input Validation](screenshots/input-validation.png "Input Validation")
44+
45+
> Memory Deallocation
46+
47+
![Memory Deallocation](screenshots/memory-deallocation.png "Memory Deallocation")

0 commit comments

Comments
 (0)