rijnahts
January 8th, 2009, 12:12
Hi,
I have a process which has main thread and also created a new thread. So totallly this porcess contains 2 threads. When I did fork() from the newly created thread, the child is inheriting only the calling thread and it is not inheriting main thread. I am not understanding why it is like that..
I wanted child to be inherited all the threads from parent proces.. Please anybody help me on this.
Thanks
I have a process which has main thread and also created a new thread. So totallly this porcess contains 2 threads. When I did fork() from the newly created thread, the child is inheriting only the calling thread and it is not inheriting main thread. I am not understanding why it is like that..
I wanted child to be inherited all the threads from parent proces.. Please anybody help me on this.
Thanks