I come across few questions:
1) A process has 3 threads, if process calls fork(), will the new process has the 3 threads as well?
2) A process has 3 threads, if one thread calls fork(), will the new process has the 3 threads as well?
3) Are there any shared data between the threads in different 2 processes in the above cases?