A computer has 5 instances of resources types R.if each process require maximum three instance,then what is the maximum number of processes we can allow such that deadlock will never arise?
given ans is 2
but i got 3 by below method
total instance < No. of processes + resource taken by each process
so my ans is 3
plzzz give valid ans