[UVA][搜索] 840 - Deadlock Detection
Deadlock Detection
In Operating Systems a special resource-allocation graph algorithm
can be used to detect whether there is any deadlock in the system.
A resource-allocation graph is a directed graph consisting of two
different types of nodes
P = P1, P2...