Browsing: Deadlock and it's prevention

To know about ways to prevent deadlock we must first know the conditions that leads deadlock to occur. Deadlock occurs when we have a set of processes (not necessarily all the process in the system), each holding some resources, each requesting some resources and none of them is able to obtain what it needs i.e.