site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com You could also buy/borrow Amit Singh's book. -- Terry _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... On Apr 10, 2010, at 6:06 AM, Ariel Feinerman wrote: Hi, sorry for stupid question. What is the difference between process, task, flow and thread in the Darwin? What kind of relationsheeps between calls fork(), exec() and pthreads or mach threads? I heard that in some OS process and thread are the same entity at least in Linux. Thank you in advance, <http://opensource.apple.com/source/xnu/xnu-1504.3.12/bsd/kern/kern_fork.c
The block comment before the vfork() function will be informative. Specifically, the "Before" picture. The "After" picture shows the child "borrowing" the parent process's thread, uthread, and task (which it keeps borrowed until after you call execve() or _exit(), which are the only legal calls to make after a vfork(); everything else is "implementation defined", according to the POSIX specification). This email sent to site_archiver@lists.apple.com
participants (1)
-
Terry Lambert