Fork introduction:Fork stands for the meaning of "branching and branching". In the operating system, fork is a famous Unix (or Unix-like, such as Linux or minix) to create a sub-process.
[Note1]What is the role of Fork? In other words, what is the
Fork introduction:Fork stands for the meaning of "branching and branching". In the operating system, fork is a famous Unix (or Unix-like, such as Linux or minix) to create a sub-process.
[Note1]What is the role of Fork? In other words, what is the
http://blog.csdn.net/jason314/article/details/5640969The fork () call will copy a new process that is almost identical to the current process (except for the fork's return value), each of which has its own space, each with its own local variables,
I. Introduction to fork
A process, including code, data, and resources allocated to the process. The fork () function creates a process that is almost identical to the original process through system calls, that is, the two processes can do
Transferred from: http://blog.csdn.net/jason314/article/details/5640969First, Fork Introduction knowledgeA process, including code, data, and resources assigned to the process. The fork () function creates a process that is almost identical to the
Turn from: http://blog.csdn.net/livingpark/article/details/4069049
"NOTE4"
First, it must be clear that the return value of the function is stored in the register EAX.
Second, when Fork returns, the new process returns 0 because the EAX is set to 0
Fork is one of the most difficult concepts to understand: it executes once but returns two values.First, let's look at the prototype of the fork function:# include # include pid_t fork (void);return value:Negative number: If there is an error, fork (
"NOTE4"
First, it must be clear that the return value of the function is stored in the register EAX.
Second, when Fork returns, the new process returns 0 because the EAX is set to 0 when the task structure is initialized;
In fork, the handle process
Understanding of fork () functions, and understanding of fork FunctionsAuthor:Wang Shanshan, a lecturer at Huaqing vision embedded College.
For those who are new to Unix/Linux operating systems and Write multi-process programs in Linux, fork is one
First, fork introductory knowledge
A process that includes code, data, and resources assigned to the process. The fork () function creates a process that is almost exactly the same as the original process through system calls, where two processes
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.