J
Jaydeep Chovatia
Hi,
I have multi-threaded program (C++, Linux) in which I am using
pthread_rwlock_t to read/write lock the critical section. Under load
my program hangs in acquiring read lock. It seems like some writer has
not released the lock. I have doubled check my source code but no
success.
Is there any way to see thread ownership on mutex to get idea about
who is current owner? Is there any otherway to debug it?
Note: I am using PTHREAD_MUTEX_ERRORCHECK type of thread and checking
the return status while locking/unlocking. No error found during
locking/unlocking.
Thank you,
Jaydeep
I have multi-threaded program (C++, Linux) in which I am using
pthread_rwlock_t to read/write lock the critical section. Under load
my program hangs in acquiring read lock. It seems like some writer has
not released the lock. I have doubled check my source code but no
success.
Is there any way to see thread ownership on mutex to get idea about
who is current owner? Is there any otherway to debug it?
Note: I am using PTHREAD_MUTEX_ERRORCHECK type of thread and checking
the return status while locking/unlocking. No error found during
locking/unlocking.
Thank you,
Jaydeep