The following two questions, if you want to understand, need a clear understanding of the concept of process, process management:
1. The parent process opens a file and then creates a child process by fork, does the child process share the parent process's file descriptor?
2. What are the mechanisms or processes that execute scripts, programs, or procedures in the shell?
The following is a summary of the basic concepts of Linux processes involved in these two issues, the creation of processes, the implementation of threads, the finalization of processes, and so on:
1. Basic concepts and data structures for Linux processes
2. Process creation
3. Implementation of threads in Linux
4. Process termination
5. Explanation of two questions
Reference:
Linux kernel design and implementation
fork:http://blog.csdn.net/cywosp/article/details/27316803
Linux Process Management: http://blog.csdn.net/xinyuan510214/article/details/50516279
Linux process-Basic concept: http://blog.sina.com.cn/s/blog_53ce9f9301018l1m.html
Application execution mechanism: http://www.cnblogs.com/li-hao/archive/2011/09/24/2189504.html
Linux Process Management