Results 1 to 2 of 2
Thread: [SOLVED] Deadlock ?
- 06-14-2009, 02:49 PM #1
[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)
Last edited by jon80; 06-14-2009 at 02:52 PM.
- 06-14-2009, 08:54 PM #2
The only source for a deadlock.
Deadlocks occur when two threads are waiting to acquire a locks that the other holds.Don't forget to mark threads as [SOLVED] and give reps to helpful posts.
How To Ask Questions The Smart Way
- By scarymovie in forum New To JavaReplies: 0Last Post: 03-07-2009, 07:58 AM
- By ajeeb in forum New To JavaReplies: 2Last Post: 01-16-2009, 03:49 AM
- By Java Tip in forum java.langReplies: 0Last Post: 04-09-2008, 07:36 PM
- By goldhouse in forum Threads and SynchronizationReplies: 0Last Post: 07-18-2007, 06:18 AM