What techniques can one use to debug what appears to be a deadlock in a Java program.
My IDE is Eclipse and I think I’ve identifid the two deadlocked threads. In the debugger, right-clicking any of the threads in question and selecting suspend suspends the thread and displays the code currently being executed. Attempting step-into or step-over the line question appears to have no effect – the thread state changes to “Stepping” with control never returning to the debugger unless suspend is clicked again.
Thanks
What techniques can one use to debug what appears to be a deadlock in
Share
If you are using a Sun JVM then attach with JConsole and go to the Threads pane. There is a “Detect Deadlock” button.