Subj : Re: pthread_mutex_trylock problem To : comp.programming.threads From : Doug Date : Wed Aug 31 2005 05:01 pm > It's also good in cases where there's potential deadlock. Imagine if you > called 'pthread_mutex_lock' and two administrative clients each tried to > disconnect the other. If you used 'pthread_mutex_lock', each client could > hold a lock on itself and try to get a lock on the other. Very bad. Of course, you'd probably solve the above using a semaphore hierarchy (with a control sempahore). .