Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
195 views1 page

Assignment 3 Bankers Algorithm

This document provides two snapshots of resource allocation for 5 processes (P0-P4) across 4 resources (A, B, C, D) including the maximum requirement, current allocation, and available resources. The banker's algorithm needs to be applied to determine if the system is in a safe state based on these snapshots.

Uploaded by

Muhammad Ahmad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
195 views1 page

Assignment 3 Bankers Algorithm

This document provides two snapshots of resource allocation for 5 processes (P0-P4) across 4 resources (A, B, C, D) including the maximum requirement, current allocation, and available resources. The banker's algorithm needs to be applied to determine if the system is in a safe state based on these snapshots.

Uploaded by

Muhammad Ahmad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Apply banker’s algorithm and determine if system is in safe state

Snapshot 1
Process Max Allocation Available
A B C A B C A B C
P0 7 5 3 0 1 0 3 3 2
P1 3 2 2 2 0 0
P2 9 0 2 3 0 2
P3 2 2 2 2 1 1
P4 4 3 3 0 1 2

Snapshot 2
Process Max Allocation Available
A B C D A B C D A B C D
P0 6 0 1 2 4 0 0 1 3 2 1 1
P1 1 7 5 0 1 1 0 0
P2 2 3 5 6 1 2 5 4
P3 1 6 5 3 0 6 3 3
P4 1 6 5 6 0 2 1 2

You might also like