Deadlock avoidance algorithm for resource allocation of multiple resource types.