Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Updated system state: Claim Allocation Need Available ??? ??? ??? ??? PO 753 0 1

ID: 3738370 • Letter: U

Question



Updated system state: Claim Allocation Need Available ??? ??? ??? ??? PO 753 0 10 743 230 P1 322 302 020 P2 902 302 600 P3 222 211 0 11 ?4433 002 431 (c) Assume the following request is issued by P4: Request ABC 330 Should the request of P4 be granted or not? (d) Assume the following request is issued by P0: Request ??? 020 Proposed system state Claim Allocation Need Available ??? ??? ??? ??? PO 753 030 723 210 P1 322 302 020 P2 902 302 600 P3 222 211011 P4 433 002 431 Is the proposed system state safe?

Explanation / Answer

c.) Since, we have only 2 3 0. So we can't grant it to P4. However, we can first grant 0 2 0 to P1 and when P1 finishes its execution. We will have 5 3 2 as available. Now, we can grant the request to P4.

d.) No. It is not in the safe state as with 2 1 0 as available, we can't fulfill the need of any process which means every process waits for resources but it can't be granted. Hence the system is in deadlock.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote