Multi-thread support

Runtime Tracing for C, C++

Runtime Tracing can be configured for use in a multi-threaded environment such as Windows.

Multi-thread mode protects Target Deployment Port global variables against concurrent access. This causes a significant increase in Target Deployment Port size as well as an impact on performance. Therefore, select this option only when necessary.

Multi thread settings:

These settings are ignored if you are not using a multi-threaded environment. To change these settings, use the Build Settings > Target Deployment Port build dialog box.

  • Maximum number of threads: This value sets the size of the thread management table inside the Target Deployment Port. Lower values save memory on the target platform. Higher values allow more simultaneous threads.

  • Record and display thread info: When selected, the UML Sequence Diagram displays a note each time a new thread is created and each time a thread's schedule is changed.

To access the multi-thread build settings:

  1. In the Project Explorer, click the Open Settings... button.

  2. Select one or several nodes in the Configuration pane.

  3. Select Build > Target Deployment Port build.

  4. Set the Multi-threaded application and Maximum number of threads settings.

  5. Select Runtime Analysis > Runtime Tracing > Runtime options.

  6. Set Record and display thread info to Yes or No.

  7. When you have finished, click OK to validate the changes.

Related Topics

Runtime Tracing Control Settings | Build settings | About Configuration Settings