|
Linux Process Management(11) > not called exec(), is set. > 6. Calls get_pid() to assign an available PID to the > new task. > 7. Depending on the flags passed to clone(), either > copy or share open files, filesystem information, > signal handlers, process address space, and namespace. > 8. Share the remaining timeslice between the parent and > its child. > 9. Cleanup and return a pointer to the new child. > 2. ==> The kernel runs the child process first. (avoid > copy-on-write overhead) > 9. P.24 vfork() > 1. The vfork() has the same effect as fork(), except that the > page table entries of the parent process are not copied. > Instead, the child executes as the sole thread in the > parent's address space, and the parent is blocked until
|