Analyzing Thread Usage of C/C++/Fortran Applications

See Also 

The Thread Usage profiling tool runs by default for C, C++, and Fortran projects, and shows the number of threads in use by your program. You can use it to observe any moments where a thread has to wait to get a lock in order to proceed with its task. This data is useful for multithreaded applications, which must perform thread synchronization in order to avoid expensive wait times.

Note: The profiling tools are supported only on platforms shown in Overview of C and C++ Profiling.

The Thread Usage indicator graphically shows the total number of threads running in the program and the number of threads that are waiting. The Thread Usage indicator is available in all Profile Configurations.

To view more detailed information about thread usage:

If you see a message that detailed information is not available in the current profile configuration:

  1. Right-click the project and select Properties.
  2. Click the Profile node in the Project Properties dialog.
  3. In the Profile Configuration list, select one of the C/C++ DTrace Standard configuration if you are running on Oracle Solaris, or C/C++ Oracle Solaris Studio Standard if you are running on Linux with the Oracle Solaris Studio tool collection.
    Tip: If you do not see these configurations, your operating system and tool collection do not support the advanced profiling features.
  4. Click OK.
  5. Run the project and you should be able to click the Sync Problems button and see detailed information.

To disable Thread Usage profiling in the Run Monitor:

To disable all Run Monitor profiling tools:

See also
  Managing C/C++/Fortran Profile Configurations
Profiling C/C++/Fortran Projects
Run Monitor Window for C/C++/Fortran Projects
C/C++/Fortran Project Properties Dialog Box: Profile

Legal Notices