首页 > 试题广场 >

Consider a system consisting o

[问答题]
Consider a system consisting of m resources of the same type, being shared by n processes. Resources can be requested and released by processes only one at a time. Show that the system is deadlock free if the following two conditions hold:
a. The maximum need of each process is between 1 and m resources
b. The sum of all maximum needs is less than m + n

推荐
This implies that there exists a process Pi such that Needi =0. Since Maxi >= 1 it follows that Pi has at least one resource that it can release.
Hence the system cannot be in a deadlock state.
发表于 2018-03-18 22:10:14 回复(0)