i*P<R+P // If this is satisfied then No deadlock would be there.
i = Number of instances of resources required by each process
P= total number of processes
R= total number of resources.
if instance requirement by each process is different then take average , this would be our i.