Skip navigation

Removing the lock

Removing the lock: Windows Performance Tools: DeadLock Analysis with Intel VTune Amplifier
Removing the lock: Windows Performance Tools: DeadLock Analysis with Intel VTune Amplifier

The critical section has a significant wait time indicated by the long bar. If we expand this we see pthread_mutex_lock->draw_task::operator(). Right clicking on draw_task underneath pthread_mutex takes us to the source code line, showing the draw_task function had to wait before it could draw and during this wait time the critical section is repeatedly contested. We discuss why the section of code is thread safe and remove the Lock.

Resume Transcript Auto-Scroll
Skill Level Intermediate
45m 28s
Duration
2,271
Views
Show More Show Less
Skills covered in this course
Development Tools Developer VTune Amplifier Windows

Continue Assessment

You started this assessment previously and didn't complete it. You can pick up where you left off, or start over.

Start My Free Month

Start your free month on LinkedIn Learning, which now features 100% of Lynda.com courses. Develop in-demand skills with access to thousands of expert-led courses on business, tech and creative topics.

Start My Free Month

You are now leaving Lynda.com and will be automatically redirected to LinkedIn Learning to start your free trial.