Anonymous user menu

mutexes and processes

plz explain this 

1Comment
Sameer Dubey @sameerz567
12 Nov 2014 12:53 am

The correct isn't (a) but it is (b). If you see carefully in option (b) either of process 1 or process 2 will be struck at the first semaphore itself which depends on your order of execution. then try possibilities and you can easily ensure that deadlock can't occur.

In fact the correct way to solve this problem is by considering possibilities where deadlock occurs, in options (a), (c) and (d) deadlock is easy to occur..under no circumstances deadlock can occure in (b)...you should prove that deadlock should'nt occur in any possible execution