DeadLock ⇒ If two or more processes are waiting on happening of some event, which never happens, then we say these processes are involved in deadlock then that state is DeadLock.

or

![Untitled](<https://prod-files-secure.s3.us-west-2.amazonaws.com/79230e93-a4fd-4bfc-97cb-6b8c1af7fd09/59904d3e-01c5-4ef5-8237-602464bb5ff8/Untitled.png>)


Resource Allocation Graph(RAG)



Various Method to Handle DeadLock

  1. DeadLock ignorance (Ostrich Method) Used in Real Life


  2. DeadLock prevention


  3. DeadLock Avoidance (by Banker’s Algorithm)


  4. DeadLock Detection and Recovery