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

Job # Devicesallocated MaxRequired Remaining needs 1 5 6 2 4 7 3 2 6 4 0 2 Syste

ID: 3612944 • Letter: J

Question

Job #       Devicesallocated      MaxRequired   Remaining needs 1               5                                  6 2                4                                   7 3               2                                   6 4               0                                   2     System has 12 devices; only 1 isavailable a)   Determine the "remaining needs" foreach job in the system b) Determine whether system is safe orunsafe c)  If the systemis 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                                  6 2                4                                   7 3               2                                   6 4               0                                   2     System has 12 devices; only 1 isavailable a)   Determine the "remaining needs" foreach job in the system b) Determine whether system is safe orunsafe c)  If the systemis 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

Explanation / Answer

Remaining Needs = Max Required - Devices Allocated (a)job#          Remaining needs      1                          1      2                           3            3                           4       4                           2 (b) The System is safe. (c) We have one un-allocated device available. Job1 needs one more device so when it makes a request, oneun-allocated device will be allocated to job 1. now job 1 releases6 devices after its work. Out of these 6, 3 will beallocated to job 2 when a request is made. When job 2 releases 7devices, job 3 will be given 6 devices and job 4 will be given2 devices when requested. (d) Since each job got its required needs, the system is safeno deadlock occurs.
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