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
1,646
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 Your Free Trial Now

Start your free trial now, and begin learning software, business and creative skills—anytime, anywhere—with video instruction from recognized industry experts.

Start Your Free Trial Now