Deadlock describes a situation where two or more threads are blocked forever, waiting for each other. This undesirable situation may occur when two or more threads are waiting to gain control on a resource. Due to some reasons, the condition on which the waiting threads rely on to gain control does not happen. This results in a situation called as deadlock. But, java automatically recognizes this situation and terminates some processes automatically to ensure safer execution.
0 comments:
Post a Comment