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 8 2 3 9 3 4 8 System has

ID: 3612945 • Letter: J

Question

Job #       Devicesallocated      MaxRequired   Remaining needs 1                  5                              8 2                  3                               9 3                  4                              8        System has 14 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                  3                               9 3                  4                              8        System has 14 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                  3                               9 3                  4                              8        System has 14 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

Explanation / Answer

Remaining Needs = Max Required - Devices Allocated (a)job#          Remaining needs      1                          3      2                           6           3                           4        (b) The System is unsafe. (c) Since the system is unsafe no releases may occur (d)The total number of devices are 14 and out of which 12 areallocated and 2 are free. All the three jobs require 3,6, and4 devices respectively. When 2 free devices are allocated to job1,it still needs 1 more device. until it gets 1 device it will notfree the remaining 7 devices. Similarly other two jobs are also inneed of 6 and 4 devices which are not available.Until any one ofthe job gets its required devices and releases the resourcesavailable with it, the other will not get the resources needed.Hence 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