Two steps are involved in detecting deadlocks:
Create a deadlock-detection experiment.
Examine the experiment for deadlocks.
To create a deadlock-detection experiment, use the collect command with the –r deadlock flag to run the application and collect experiment data during the execution of the process. When you use the –r deadlock option, the collected data includes lock holds and lock requests that form a circular chain.
You can examine the deadlock-detection experiment with the tha command, which starts the Thread Analyzer graphical user interface. You can also use the er_print command-line interface.