Operating System: Assignment # 02
Operating System: Assignment # 02
Total Marks:
Obtained Marks:
Operating System
Assignment # 02
Last date of Submission: 28th Dec, 2020
OS BSSE-4 SZABIST-ISB
Shaheed Zulfikar Ali Bhutto Institute of Science & Technology
Process Need
A B C D
P0 2 0 1 1
P1 0 6 5 0
OS BSSE-4 SZABIST-ISB
Shaheed Zulfikar Ali Bhutto Institute of Science & Technology
P2 1 1 0 2
P3 1 0 2 0
P4 1 4 4 4
SEQUENCE P0P2P3P4P1
FOR P0, CHECK.
Process Max Allocation Available Need
A B C D A B C D A B C D A B C D
P0 6 0 1 2 4 1 0 1 3 2 1 1 2 0 1 1
P1 1 7 5 0 1 1 0 0 0 6 5 0
P2 2 3 5 6 1 2 5 4 1 1 0 2
P3 1 6 5 3 0 6 3 3 1 0 2 0
P4 1 6 5 6 0 2 1 2 1 4 4 4
NOW CHWCK FOR P1, BUT P1 IS NOT PERFECT AVAILABLE THERE FOR, THEY MOVE TO
NEXT PROCESS P2
Process Max Allocation Available Need
OS BSSE-4 SZABIST-ISB
Shaheed Zulfikar Ali Bhutto Institute of Science & Technology
A B C D A B C D A B C D A B C D
P0 6 0 1 2 3 2 1 1
P1 1 7 5 0 1 1 0 0 7 3 1 2 0 6 5 0
P2 2 3 5 6 8 5 6 6
P3 1 6 5 3 0 6 3 3 1 0 2 0
P4 1 6 5 6 0 2 1 2 1 4 4 4
OS BSSE-4 SZABIST-ISB
Shaheed Zulfikar Ali Bhutto Institute of Science & Technology
P1 1 7 5 0 7 3 1 2
P2 2 3 5 6 8 5 6 6
P3 1 6 5 3 8 11 9 9
P4 1 6 5 6 8 13 10 11
TOTAL (9 14 10 11)
Process Max Allocation Available Need
A B C D A B C D A B C D A B C D
P0 6 0 1 2 9 14 10 11
P1 1 7 5 0
P2 2 3 5 6
P3 1 6 5 3
P4 1 6 5 6
After PO finishes P3 can be assigned. 1020 from released 6012 and also available
2011(Total 80 23) and is a safe sequence.
OS BSSE-4 SZABIST-ISB