Re: processes, tasks, threads
Re: processes, tasks, threads
- Subject: Re: processes, tasks, threads
- From: Terry Lambert <email@hidden>
- Date: Tue, 13 Apr 2010 05:13:32 -0700
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).
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden