CS604 GDB Solution Fall 2017
#1
CS604 Graded Discussion Board Solution
Fall 2017

GDB Topic:
 
Suppose a system allows deadlocks to occur in a system and then run deadlock detection algorithm to detect deadlocks in the system and then recover system from deadlocks.
 
You have been given two approaches for running a deadlock detection algorithm:
a.        Running an algorithm on the system every time a request is granted.
b.        Running an algorithm on the system after specified period of time.
 
In your opinion, which approach will best suit the system considering that deadlocks are less likely to occur in the system and processes are frequently requesting resources.
 
You are required to give your own opinion. Keep your answer precise and to the point.

Solution:

In my opinion, approach 'b' will best suit this system because as the deadlocks are less likely to happen and processes are frequently requesting resources, running the algorithm after specified period of time will not slow down the system much but if the first approach is used that after every request the algorithm is run, and as the requests are quite frequent, it will slow down the system a log and processes will experience lag.
Hence its best to run the detection algorithm after a specified time for deadlock detection.
  


Possibly Related Threads…
Thread Author Replies Views Last Post
  CS604 Assignment 2 Idea Solution Spring 2020 Ayra Suleman 0 224 06-11-2020, 03:57 AM
Last Post: Ayra Suleman
  CS605 Assignment 3 Solution Fall 2020 Ayra Suleman 0 1,435 01-26-2020, 02:53 AM
Last Post: Ayra Suleman
  CS606 Assignment 3 Solution Fall 2020 Ayra Suleman 0 1,392 01-26-2020, 02:46 AM
Last Post: Ayra Suleman
  CS602 Assignment 3 Solution Fall 2020 Ayra Suleman 0 843 01-26-2020, 02:18 AM
Last Post: Ayra Suleman
  CS604 Assignment 3 Solution Fall 2020 Ayra Suleman 0 826 01-26-2020, 02:16 AM
Last Post: Ayra Suleman
  CS614 GDB Idea Solution Fall 2020 Ayra Suleman 0 1,023 01-16-2020, 10:36 PM
Last Post: Ayra Suleman
  CS601 Assignment 3 Solution Fall 2020 Ayra Suleman 0 1,810 01-16-2020, 10:32 PM
Last Post: Ayra Suleman
  CS614 Assignment 2 Solution Fall 2019 Ayra Suleman 0 919 11-28-2019, 11:41 PM
Last Post: Ayra Suleman
  CS614 Assignment Solution Fall 2019 Ayra Suleman 0 786 11-26-2019, 11:39 PM
Last Post: Ayra Suleman
  CS601 Assignment 2 Solution Fall 2019 Ayra Suleman 0 814 11-26-2019, 11:37 PM
Last Post: Ayra Suleman



Users browsing this thread:
1 Guest(s)