Results 1 to 2 of 2
Thread: [SOLVED] Deadlock ?
- 06-14-2009, 01: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?
:confused:
Reference
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)
NOTES
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 01:52 PM.
- 06-14-2009, 07: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
Similar Threads
-
Analysing for starvation, deadlock and mutual exclusion
By scarymovie in forum New To JavaReplies: 0Last Post: 03-07-2009, 06:58 AM -
Thread Deadlock
By ajeeb in forum New To JavaReplies: 2Last Post: 01-16-2009, 02:49 AM -
How to create a simple deadlock
By Java Tip in forum java.langReplies: 0Last Post: 04-09-2008, 06:36 PM -
Deadlock detection tools documentation
By goldhouse in forum Threads and SynchronizationReplies: 0Last Post: 07-18-2007, 05:18 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks