Bloomberg LP Interview Question
Financial Software DevelopersCountry: United States
Interview Type: Phone Interview
Depends, for example in case of POSIX threads:
1. If there's no call to the function pthread_join(), then the child process terminates too when the parent terminates.
2. But if there is a call to the pthread_join() then the parent will wait for the child to terminate.
Also, in some cases, the child process might become orphan and the init process (PID 1) becomes its parent.
There are a few cases
- Vaibhav May 10, 2012Some parents terminate their child processes
Else if the process continues execution such a process is called as orphan process