If I have 10 processes and each process wants 3 resources so now usually we first calculate the maximum no of resources so that there is deadlock by assigning one resource less than the maximum need of the resource and then add 1 to it , to find the minimum no of resources to remove deadlock ,I agree to that logic too so by using that I get the answer as 21 ,Now what if I assign 1 resource initially to 9 processes and then assign 3 resource to 10th process or assign 2 resource to any one of the process and 1 resource to the remaining this would account to 11 which will lead to deadlock and then add 1 to it =12 ,this would remove deadlock , what is the mistake in this logic ?