Fall 2024_CS604P_2
Fall 2024_CS604P_2
Please carefully read the following instructions before attempting the assignment.
You should consult the recommended books to clarify your concepts, as handouts are insufficient.
Assignment Submission:
You are supposed to submit your assignment in Doc or Docx format.
Any other formats, such as scanned images, PDF, zip, rar, ppt, and BMP, will not be accepted.
You are required to send the Screenshot and C code of Question No. 1 in the same Word file.
Assignment No. 1 covers Labs 9 to Labs 12
OBJECTIVE
The objective of this assignment is to provide hands-on experience in the:
To implement the Banker's Algorithm for Deadlock Avoidance in C.
Ensuring the system's safe state before granting resource allocation requests.
NOTE
No assignment will be accepted after the due date via email in any case (whether it is due to load
shedding or internet malfunctioning, etc.). Hence, refrain from uploading assignments within the
last hour of the deadline. It is recommended that the solution file be uploaded at least two days
before its closing date.
Please consult your instructor before the deadline if you find any mistake or confusion in the
assignment (Question statement). After the deadline, no queries will be entertained in this
regard.
Note: Every student must display his/her own student ID instead of the sample ID given in
the screenshot below.
Sample Input:
Enter Total number of frames: 4
Enter number of Pages: 8
Enter Reference string:
5
6
4
2
5
3
Output Sample: