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]

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


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