How to determine the thread holding a mutex?

xxhdx1985126 xxhdx1985126@163.com
Tue Jan 10 10:34:00 GMT 2017


Hi, everyone.

I'm trying to debug a problem that appears to be a deadlock. I wonder if I can use gdb to find out which thread is holding a mutex. If so, my work would be much easier, as there are many threads in my program.

Please help me, Thank you:-)


More information about the Gdb mailing list