Subj : Re: list of all threads( pthread_t's ) in process To : comp.programming.threads From : David Schwartz Date : Wed Sep 28 2005 03:19 am "shex" wrote in message news:1127896838.142786.167250@f14g2000cwb.googlegroups.com... >> Is this in an error condition only? Or is the supposed to be part of >> normal operation? You can't signal them because they could cease to exist >> in-between when you decide to signal them and when you signal them. You >> cannot interact safely with another pthread directly unless you control >> (or >> at least have knowledge of) its lifetime. > I know they are alive, i just don't know how many are there and what > are theirs pthread_id. That makes no sense. Since you don't know how many there are or what their IDs are, how do you know which ones you know are alive? (Libraries, for example, can create and destroy threads you don't know about at any time.) > is there another way to communicate with my siblings without changing > their code, and make them print their stack trace(except from the > pstack that was mention above)? There are lots of ways to debug threads, but it tends to get platform specific. Ask on a newsgroup for the platform you are working with. DS .