首页 > 试题广场 >

Your company is building a com

[问答题]
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.

发表于 2018-03-25 10:14:33 回复(0)