[SOLVED] Deadlock ?
"Every object has an intrinsic lock associated with it. By convention, a thread that needs exclusive and consistent access to an object's fields has to acquire the object's intrinsic lock before accessing them, and then release the intrinsic lock when it's done with them. A thread is said to own the intrinsic lock between the time it has acquired the lock and released the lock. As long as a thread owns an intrinsic lock, no other thread can acquire the same lock. The other thread will block when it attempts to acquire the lock. " (1)
Is this a potential source for a deadlock?
1. Intrinsic Locks and Synchronization (The Java™ Tutorials > Essential Classes > Concurrency)
2. Deadlock (The Java™ Tutorials > Essential Classes > Concurrency) Deadlock (The Java™ Tutorials > Essential Classes > Concurrency)
1. I have already read How to ask questions the smart way btw :) (http://catb.org/esr/faqs/smart-questions.html#intro)
The only source for a deadlock.
Deadlocks occur when two threads are waiting to acquire a locks that the other holds.