Threads doubhts

Link to this post 01 Nov 10

I have few doubhts related to threads. Can you please clarify.

1. Is it possible to call fork() inside a thread.
2. Is it possible for a thread to create another thread.


Link to this post 05 Nov 10

1. Yes, but you may have some issues with file descriptors and/or sockets that are in use in the forked copy. However, if you are going to exec another application after the fork, then fine.
2. Yes. After all, you can consider the main application as being a thread itself.

Link to this post 20 May 11

both things are possible kumar :-)

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board