Sun Studio 12: Thread Analyzer User's Guide

3.3.2 Create a Deadlock-Detection Experiment

Use the Thread Analyzer's collect command with the -r deadlock option. This option creates a deadlock-detection experiment during the execution of the program.

You can increase the likelihood of detecting deadlocks by creating several deadlock-detection experiments. Use a different number of threads and different input data for the various experiments.

See collect.1 and collector.1 for more information.