c++ - To check how many locks a thread has obtained in visual studio 2010? -



c++ - To check how many locks a thread has obtained in visual studio 2010? -

i debugging multi-thread programme written others , big. uncertainty there deadlock under rare condition. how utilize vs 2010 tools or tools windbg identify how many locks thread has had @ given time , sequence thread acquired locks?

you can utilize windbg list of locked locks, , owning threads. utilize !locks command.

you can utilize windbg within visual studio well:

visual studio 2012 , windbg integration

edit:

when deadlock exists, you'll find pair of threads (or circular dependency of threads) paused on lock held thread.

so you'll see lock1 held thread1 , lock2 held thread2. thread1 waiting lock2, , thread2 waiting lock1.

c++ multithreading visual-studio-2010

Comments

Popular posts from this blog

c# - ASP.NET MVC Sequence contains no matching element -

java - Parsing XML, skip certain tags -

rest - How to invalidate user session on inactivity in a stateless server? -