Oracle® Solaris Studio 12.4: Thread Analyzer User's Guide

Exit Print View

Updated: December 2014

Usage Model for Detecting Deadlocks

    Two steps are involved in detecting deadlocks:

  1. Create a deadlock-detection experiment.

  2. Examine the experiment for deadlocks.

Create an Experiment for Detecting 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.

Examine the Experiment for Deadlocks

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.