Tutorial

Intel® Inspector Tutorial: Analyzing Threading Errors in a C++ Sample Application for Windows* OS

ID 767807
Date 3/26/2021
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Intel® Inspector Tutorial: Analyzing Threading Errors in a C++ Sample Application for Windows* OS

Intel® Inspector is a dynamic memory and threading error checking tool for users developing serial and multithreaded applications on Windows* and Linux* operating systems.

This tutorial - and C++ sample application you can use to follow along - show how to use the Intel inspector on a Windows* platform to analyze threading errors.

Intel® Inspector is available as a standalone product and as part of the following products:

  • Intel® oneAPI HPC Toolkit

  • Intel® oneAPI IoT Toolkit

About This Tutorial

This tutorial demonstrates an end-to-end workflow you can ultimately apply to your own applications:

  1. Build an application to produce an optimal inspection result.

  2. Inspect an application to find threading errors.

  3. Edit application code to fix the threading errors.

  4. Rebuild and reinspect the application.

It was last updated for the 2017 product release. (The only variance for the 2018 product release is screenshot background color.)

Estimated Duration

10-15 minutes.

Learning Objectives

After you complete this tutorial, you should be able to:

  • List the steps to find and fix threading errors using the Intel Inspector.

  • Define key Intel Inspector terms.

  • Identify compiler/linker options that produce the most accurate and complete analysis results.

  • Run threading error analyses.

  • Influence analysis scope and running time.

  • Navigate among windows in the Intel Inspector results.

  • Display a prioritized to-do list for fixing errors.

  • Access help for fixing specific errors.

  • Access source code to fix errors.

More Resources

The concepts and procedures in this tutorial apply regardless of programming language; however, a similar tutorial using a sample application in another programming language may be available at Intel® Software Documentation Library.

These sites also offer tutorials for other Intel products.

In addition, you can find more resources in: