Subj : Re: pthread_mutex_lock throws an exception on receiving signal 15 To : comp.programming.threads From : pankaj-startup Date : Wed Sep 21 2005 10:18 am > > It is extremely unlikely that *that* is what's happening, because > exceptions propagate up the stack, and each thread has a separate > stack. > Suppose a parentThread has one function which spwans a childThread. If i dont try/catch exception in childThread, then would exception raised in childThread be catched in parentThread try/catch (assuming that parentThread waits further after spwaning childThread)? > difficult and best avoided. Attempting to lock a mutex in an > async-signal context is definitely not a good idea. > Why so? can you please elaborate a little bit? .