In dining phyloshopher problem , if the number of phyloshopher is 4 and number of fork is 5, then atleast one fork which is extra , that place 2 philoshopher is not sharing any fork.
So, circular wait violating. and deadlock not possible. But yes starvation always possible. As each philoshopher have atleast one fork sharing with other.
Now for (ii) unrestricted number of philoshopher is there. and there are only 5 forks. So, each phyloshopher must share their forks. So, Deadlock is obvious there.