dead lock means suppose there is two process process A
depends upon the resources of process B where process B
depends upon the resorses of B.both will be confused and it
wiil be stop forever.This is called delock for relese it
use synchroniz keyword in java
For example,
One process writting data into a file, another process
deleting data from that same file. In this situation both
process cannot be complete. This is called 'Deadlock'