Threading Issues
Semantics of fork() and exec() system calls
The fork() system call is used to create a separate, duplicate process
In multithread, if one thread call fork() - Does fork() duplicate only the calling thread or all threads?
Unix systems have two versions of fork()
New process has all threads
New process has only the thread that invoked the fork()
If a thread invokes the exec(), the program specified in the parameter to exec() will replace the entire process (including all threads)