Glossaria.net

Glossary Java / Term

deadlock

Deadlock occurs when two or more threads are waiting for resources that they can't get. An example would be when one thread must access Method1 before it can release its hold on Method2, but the second thread must access Method2 before it can release its hold on Method1. Because these are mutually exclusive conditions, the threads are deadlocked and cannot run.

Permanent link deadlock - Creation date 2022-01-03


< data type Glossary / Java declaration >