how to find the mutex lock holder in pthread program?

Han keepsimple@gmail.com
Mon Feb 22 06:26:00 GMT 2010


Hi,
I am using pthread in a C program. I found my program randomly hung
because one thread failed to obtain the mutex lock. The error code is
EBUSY. I am wondering how can I find out what is the thread holding
the mutex lock at that point?

thanks.
Han



More information about the Libc-help mailing list