Subj : pthread_mutex_trylock problem To : comp.programming.threads From : rajendra.stalekar Date : Wed Aug 31 2005 06:02 am I would like to know if one thread acquires a lock(by using pthread_mutex_lock) and another thread tries to acquire it it would sleep on it and once the thread which acquired releases it the first thread which is sleeping acquires. When would we use pthread_mutex_trylock() then? What is the use of such a function. .