Job # Devicesallocated MaxRequired Remaining needs 1 5 8 2 4 6 3 1 4 System has
ID: 3612948 • Letter: J
Question
Job # Devicesallocated MaxRequired Remaining needs 1 5 8 2 4 6 3 1 4 System has 12 devices; only 2 areavailable a) Determine the "remaining needs" foreach job in the system b) Determine whether system is safe orunsafe c) If the system is in a safe state, list thesequence of requests and releases that will make it possible forall the processes to run to completion. d) If the system is an unsafe state, show how itspossible for the deadlock to occur Job # Devicesallocated MaxRequired Remaining needs 1 5 8 2 4 6 3 1 4 System has 12 devices; only 2 areavailable a) Determine the "remaining needs" foreach job in the system b) Determine whether system is safe orunsafe c) If the system is in a safe state, list thesequence of requests and releases that will make it possible forall the processes to run to completion. d) If the system is an unsafe state, show how itspossible for the deadlock to occur Job # Devicesallocated MaxRequired Remaining needs 1 5 8 2 4 6 3 1 4 System has 12 devices; only 2 areavailable a) Determine the "remaining needs" foreach job in the system b) Determine whether system is safe orunsafe c) If the system is in a safe state, list thesequence of requests and releases that will make it possible forall the processes to run to completion. d) If the system is an unsafe state, show how itspossible for the deadlock to occurExplanation / Answer
a) Remaining needs = Max Required - Devices allocated For Job1: 8-5 =3 more needed job2: 6-4 = 2 needed job3: 4-1 = 3 needed b)the system is in safe state. c)sequence of requests and releases. 1) job2 requests the 2 more resources needed for its completion 2) Now job2 is completed and it releases all the 6 (4 + 2 allocatedin the above step) 3) Now job 1 requests the 3 more resources needed. 4) job1 is completed and releases all 8 resources 5) job3 requests the 3 resources needed 6) job3 completes and releases all the resources. d) the system is in safe state...therefore no deadlock
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.