https://github.com/phanikmr/bankersalgorithm
https://github.com/phanikmr/bankersalgorithm
bankers c deadlock-detection operating-system resource-allocation
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/phanikmr/bankersalgorithm
- Owner: phanikmr
- License: apache-2.0
- Created: 2017-09-11T11:36:29.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-11T11:44:32.000Z (over 7 years ago)
- Last Synced: 2025-01-27T16:47:25.831Z (4 months ago)
- Topics: bankers, c, deadlock-detection, operating-system, resource-allocation
- Language: C
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BankersAlgorithm
Enter Total Number of Resources types:3
Enter Total Number of Processes:5
Enter MAX Number of Resources can be Allocated to P0 Process R0 resource:7
Enter MAX Number of Resources can be Allocated to P0 Process R1 resource:5
Enter MAX Number of Resources can be Allocated to P0 Process R2 resource:3
Enter MAX Number of Resources can be Allocated to P1 Process R0 resource:3
Enter MAX Number of Resources can be Allocated to P1 Process R1 resource:2
Enter MAX Number of Resources can be Allocated to P1 Process R2 resource:2
Enter MAX Number of Resources can be Allocated to P2 Process R0 resource:9
Enter MAX Number of Resources can be Allocated to P2 Process R1 resource:0
Enter MAX Number of Resources can be Allocated to P2 Process R2 resource:2
Enter MAX Number of Resources can be Allocated to P3 Process R0 resource:2
Enter MAX Number of Resources can be Allocated to P3 Process R1 resource:2
Enter MAX Number of Resources can be Allocated to P3 Process R2 resource:2
Enter MAX Number of Resources can be Allocated to P4 Process R0 resource:4
Enter MAX Number of Resources can be Allocated to P4 Process R1 resource:3
Enter MAX Number of Resources can be Allocated to P4 Process R2 resource:3
Enter Number of Resources Allocated to P0 Process R0 resource:0
Enter Number of Resources Allocated to P0 Process R1 resource:1
Enter Number of Resources Allocated to P0 Process R2 resource:0
Enter Number of Resources Allocated to P1 Process R0 resource:2
Enter Number of Resources Allocated to P1 Process R1 resource:0
Enter Number of Resources Allocated to P1 Process R2 resource:0
Enter Number of Resources Allocated to P2 Process R0 resource:3
Enter Number of Resources Allocated to P2 Process R1 resource:0
Enter Number of Resources Allocated to P2 Process R2 resource:2
Enter Number of Resources Allocated to P3 Process R0 resource:2
Enter Number of Resources Allocated to P3 Process R1 resource:1
Enter Number of Resources Allocated to P3 Process R2 resource:1
Enter Number of Resources Allocated to P4 Process R0 resource:0
Enter Number of Resources Allocated to P4 Process R1 resource:0
Enter Number of Resources Allocated to P4 Process R2 resource:2
Enter Available System Resources of type R0:3
Enter Available System Resources of type R1:3
Enter Available System Resources of type R2:2
Banker is Safe until Process P1 is Executing
Banker is Safe until Process P3 is Executing
Banker is Safe until Process P4 is Executing
Banker is Safe until Process P0 is Executing
Banker is Safe until Process P2 is Executing