Tutorial: Analyzing Locks and Waits - C++ Sample Code

Intel® VTune™ Amplifier for Windows* OS

Legal Information

Discover how to use the Locks and Waits analysis of Intel® VTune™ Amplifier to identify one of the most common reasons for an inefficient parallel application - threads waiting too long on synchronization objects (locks) while processor cores are underutilized. Focus your tuning efforts on objects with long waits where the system is underutilized.

About This Tutorial

This tutorial uses the sample analyze_locks application and guides you through basic steps required to analyze the code for locks and waits.

Estimated Duration

10-15 minutes.

Learning Objectives

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

  • Choose an analysis target.

  • Choose the Locks and Waits analysis type.

  • Run the Locks and Waits analysis.

  • Identify the synchronization objects with long waits and poor thread concurrency level.

  • Analyze the source code to locate the most critical code lines.

  • Compare results before and after optimization.

More Resources

Start Here

Для получения подробной информации о возможностях оптимизации компилятора обратитесь к нашему Уведомлению об оптимизации.