Option |
Default |
-threads |
no |
Enables thread support. With this option set, Purify keeps track of threads and uses appropriate mutex locks to operate in a thread-safe manner. Purify enables this automatically when your program is linked with a supported thread package. Use -threads=no to disable thread support. |
-max-threads |
20 |
Specifies the maximum number of threads in a program. If you expect to use more than 20 threads, set this option to avoid overflowing the tables that record thread data. |
-thread-report-at-exit |
no |
Specifies whether or not Purify prints the threads summary when the program exits. Use -thread-report-at-exit=no to suppress printing a thread summary at exit. Purify enables this automatically when your program is linked with a supported thread package. |
-thread-stack-change |
0x1000 |
Specifies the minimum size of a change to the stack pointer that signals a thread context switch. You might need to increase this value for programs that allocate large data structures on the stack. You might need to decrease it for multi-threaded programs that create threads whose stacks are very close to one another. This option is available only on Solaris and HP-UX, and only when the enabling option -enable-thread-stack-change is set. The default for -enable-thread-stack-change is true on Solaris, but false on HP-UX. |
Notes:
Purify also includes API functions for threads.
For information about customizing the thread summary message, click