This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

how to find the mutex lock holder in pthread program?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]