Bloomberg LP Interview Question
Financial Software DevelopersThe child process has its own copy of the file decriptors for the parent process. Each of the file descriptors for a child process refer to the same open file description with the corresponding file descriptor of the parent process.
The child process does not inherit file locks set by the parent process.
No, file locks set by the parent process shall not be inherited by the child process. Also the child process shall not inherit any address space memory locks established by the parent process via calls to mlockall() or mlock().
- jess October 13, 2008