File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Thread dump - thread states Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Thread dump - thread states" Watch "Thread dump - thread states" New topic
Author

Thread dump - thread states

Tony Morris
Ranch Hand

Joined: Sep 24, 2003
Posts: 1608
Here is an expert from a core dump requested from my VM, which has deadlocked:

2XMFULLTHDDUMP Full thread dump Classic VM (J2RE 1.3.1 IBM Windows 32 build cn131-20021102, native threads):
3XMTHREADINFO "Thread-1" (TID:0x903EA0, sys_thread_t:0x7B0270, state:CW, native ID:0x4DC) prio=5
3XMTHREADINFO "AWT-Windows" (TID:0x903F30, sys_thread_t:0x11808230, state:R, native ID:0x464) prio=6
4XESTACKTRACE at sun.awt.windows.WToolkit.eventLoop(Native Method)
4XESTACKTRACE at sun.awt.windows.WToolkit.run(WToolkit.java:211)
4XESTACKTRACE at java.lang.Thread.run(Thread.java:512)
3XMTHREADINFO "SunToolkit.PostEventQueue-0" (TID:0x903F78, sys_thread_t:0x118057E0, state:CW, native ID:0x38C) prio=6
4XESTACKTRACE at java.lang.Object.wait(Native Method)
4XESTACKTRACE at java.lang.Object.wait(Object.java:429)
4XESTACKTRACE at sun.awt.PostEventQueue.run(SunToolkit.java:514)
3XMTHREADINFO "AWT-EventQueue-0" (TID:0x903FD0, sys_thread_t:0x11781398, state:CW, native ID:0x1A4) prio=5
4XESTACKTRACE at java.lang.Object.wait(Native Method)
4XESTACKTRACE at java.lang.Object.wait(Object.java:429)
4XESTACKTRACE at java.awt.EventQueue.getNextEvent(EventQueue.java:353)
4XESTACKTRACE at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:149)
4XESTACKTRACE at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:141)
4XESTACKTRACE at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:132)
4XESTACKTRACE at java.awt.EventDispatchThread.run(EventDispatchThread.java:124)
3XMTHREADINFO "Finalizer" (TID:0x904100, sys_thread_t:0x8A8C88, state:CW, native ID:0x400) prio=8
4XESTACKTRACE at java.lang.Object.wait(Native Method)
4XESTACKTRACE at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:133)
4XESTACKTRACE at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:148)
4XESTACKTRACE at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:213)
3XMTHREADINFO "Reference Handler" (TID:0x904148, sys_thread_t:0x10CA6C98, state:CW, native ID:0x424) prio=10
4XESTACKTRACE at java.lang.Object.wait(Native Method)
4XESTACKTRACE at java.lang.Object.wait(Object.java:429)
4XESTACKTRACE at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:131)
3XMTHREADINFO "Signal dispatcher" (TID:0x904190, sys_thread_t:0x8A1FA8, state:R, native ID:0x408) prio=5


Can anyone tell me what state:CW and state:R mean? What are other possible states?


Tony Morris
Java Q&A (FAQ, Trivia)
Tony Morris
Ranch Hand

Joined: Sep 24, 2003
Posts: 1608
I just typed the right google search terms http://java.sun.com/developer/onlineTraining/Programming/JDCBook/stack.html
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Thread dump - thread states