首页 > 试题广场 >

Consider a system consisting o

[问答题]

Consider a system consisting of four resources of the same type that are shared by three processes, each of which needs at most two resources.
Show that the system is deadlock-free.

推荐
Suppose the system is deadlocked. This implies that each process is holding one resource and is waiting for one more. Since there are three processes and four resources, one process must be able to obtain two resources. This process requires no more resources and, therefore it will return its resources when done.
发表于 2018-03-18 22:06:00 回复(0)