This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
how to find the mutex lock holder in pthread program?
- From: Han <keepsimple at gmail dot com>
- To: libc-help at sourceware dot org
- Date: Sun, 21 Feb 2010 22:26:28 -0800
- Subject: 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