Wednesday, 18 November 2015

What is Deadlock? Explain briefly

Deadlock : When a thread is waiting for an object lock, that is acquired by another thread and second thread is waiting for an object lock that is acquired by first thread. Since, both threads are waiting for each other to release the lock, the condition is called deadlock.

Example:

No comments:

Post a Comment