CS604 GDB 1 Solution | CS604 Latest solved Gdb 2021
GDB
Suppose a system has not implemented any deadlock
prevention and avoidances measurement. Therefore, it has to run the deadlock
detection algorithm in case deadlock has occurred in a system. Following two
strategies can be adopted to recover the system from a deadlock.
- Abort the one or
more processes to break the circular wait.
- Preempt some
resources from one or more processes to break the deadlock.
ANSWER:
- Abort the one or
more processes to break the circular wait.
Process Termination
To
eliminate the deadlock, we can simply kill one or more processes. For this, we
use two methods:
- (a). Abort all the Deadlocked Processes:
Aborting all the processes will certainly break the deadlock, but with a great expense. The deadlocked processes may have computed for a long time and the result of those partial computations must be discarded and there is a probability to recalculate them later.
- (b). Abort one process at a time until deadlock is eliminated:
Abort one deadlocked process at a time, until deadlock cycle is eliminated from the system. Due to this method, there may be considerable overhead, because after aborting each process, we have to run deadlock detection algorithm to check whether any processes are still deadlocked.
In your opinion, which option will be considered more
suitable to recover the system from a deadlock? Write a concise and to the
point answer with valid reasons.
Read the following instructions
carefully before sending your comments:
1. Your discussion must be
based on logical facts and in-depth knowledge of topic is must for that.
2. Your comments should be
relevant to the topic i.e., clear and concise. (Maximum 4-5
lines answer).
3. You should post your
comments on Graded Discussion Board & not on the Regular MDB. Both will run
parallel to each other during the time specified above.
4. Books, websites, and other
reading material may be consulted before posting your comments.
5. No extra time will be given
for discussion.
6. You cannot participate in
the discussion after the due date or through e-mail.
To Download File
Step 1: Subscribe Us
Step 2: Click Here
0 Comments
If you have any queries please drop in your comments.