Your company is building a computer network,and you are asked to develop a scheme for dealing with the deadlock problem.
a.Would you use a deadlock-detection scheme or a deadlock-prevention scheme?
b.If you were to use a deadlock-prevention scheme,which one would you use? Explain your choice.
c.If you were to use a deadlock-detection scheme,which one would you use? Explain your choice.
a.Would you use a deadlock-detection scheme,or a deadlock-
prevention scheme ?
We would choose deadlock prevention as it is systematically
easier to prevent deadlocks than to detect them once they have
occurred.
b.If you were to use a deadlock-prevention scheme,which one would you use? Explain your choice.
A simple resource-ordering scheme would be used; preventing deadlocks by requiring processes to acquire resources in order.
c.If you were tousea deadlock-detection scheme which one would you use? Explain your choice.
If we were to use a deadlock detection algorithm,we would choose a fully-distributed approach as the centralized approach provides for a single point of failure.