File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Threads and Synchronization
find out if a Thread is blocked / blocking monitor
Joined: Jun 15, 2004
Feb 18, 2005 08:58:00
I'm writing my own Monitor und I'm now implementing
Is there any method I can do a
to find out, if a Thread is blocked ?
I found Thread.isAlive(), but it just states the Thread has been started and it is not dead (yet).
I have found 'static java.lang.Thread.holdsLock(Object obj)' but his is just
for the current running Thread...
Is there a way to get some debugging information out of the jvm, to tell me,
which Thread is blocked (where, on what, etc) ?
Joined: Oct 29, 2001
Feb 18, 2005 09:58:00
Take a look at the
monitoring and management API
How To Ask Questions On JavaRanch
Joined: Jan 29, 2003
Feb 18, 2005 11:47:00
Specialists Newsletter is about automatic detection of deadlocks. The newsletter explores some pretty deep Java stuff some times.
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
I agree. Here's the link:
subject: find out if a Thread is blocked / blocking monitor
What exactly happens in a call to Object.wait()
Blocked state of Thread
secure web based mail
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015