Subj : Re: Linux MultiTherad To : comp.programming.threads From : Gio67 Date : Tue Aug 02 2005 08:05 am "AlterX" ha scritto nel messaggio news:dclfkd$gi8$1@newsreader.mailgate.org... > Gio67 wrote: > > HI, I'm developing a multithreading apllication in C using the pthread > > library. > > When a new thread i started , the Linux OS creates a new process, > > No... crate a new thread! > > and I > > need to know wich is the pid of the new thread. > > How can I do to know the pid ? There is an API ? > > > How you create a thread without use pthread_create that return > a thread id!??! > > you are mistake!!! When I use a pthread_create() to create a thread I have the threadID, but if I look for in the directory //proc/processpid/task/ I found a new directory with a id that is different from the treadID returned by pthread_create(). Why ? .