Spring 2024 - CS604 - 2
Spring 2024 - CS604 - 2
Assignment # 02 Deadline
June 24, 2024
Spring 2024
Please carefully read the following instructions before attempting the assignment.
You should consult the recommended books to clarify your concepts, as handouts are insufficient.
You are supposed to submit your assignment in Doc or Docx format.
Any other formats like scanned images, PDF, ZIP, RAR, PPT, BMP, etc. will not be accepted.
Topic Covered:
Banker’s Algorithm/Safety Algorithm
Resource Allocation
Deadlock Avoiding
Topic Covered
Lecture 12 to Lecture 31
NOTE
No assignment will be accepted via email after the due date (whether it is load shedding, internet
malfunctioning, etc.). Hence, refrain from uploading assignments within the last hour of the deadline. It is
recommended that the solution be uploaded at least two days before its closing date.
If you find any mistakes or confusion in the assignment (Question statement), please consult your instructor
before the deadline. After the deadline, no queries will be entertained in this regard.
Total Resources:
A B C
7 2 3
Allocation Matrix
A B C
P0 0 1 0
P1 2 0 1
P2 3 0 2
Part 2:
Determine if the current system state is safe or not?
If it is safe, provide the unique safe sequence.
If it is not, then justify your answer.
The End