This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
if pthread_mutexattr_setrobust_np is set, process will hang in multi process system. in glibc -2.5
- From: guruswamy B <guru2018 at gmail dot com>
- To: libc-help at sourceware dot org
- Date: Tue, 20 Apr 2010 14:05:44 +0530
- Subject: if pthread_mutexattr_setrobust_np is set, process will hang in multi process system. in glibc -2.5
In one of my application, I need to set the pthread_mutex attribute to
PTHREAD_MUTEX_ROBUST_NP, so that when any of the process is exited or
killed with out releasing the lock, I can get back the lock.
But later i found, in multi processor environment, if we set the
robust flag, the process will hang. (see this link
http://sourceware.org/ml/libc-ports/2007-05/msg00054.html)
But later i found, it was working if i set the PTHREAD_PRIO_INHERIT attribute.
May i know why its started working, once i set PTHREAD_PRIO_INHERIT.
Also will this have any effect on normal working of my application.
I am using glibc-2.5.
processor is mips 16 core.
Guruswamy B