nosing around the clone() flags and i notice the flag CLONE_PARENT,
which sets the parent of the new child to the same parent as that of
the calling process, but i'm not sure when you'd use such a thing.

  as i read it, when a process creates a thread, the parent of that
new thread is the creating process (which, in this case, becomes the
thread group leader, right?).  so if that original process creates
*all* of the new threads in that group, then all of those new threads
will have the same parent pointer and there's no need for the flag
CLONE_PARENT.

  on the other hand, if one of those new threads *itself* creates a
new thread but wants that new thread to appear as a normal thread in
the thread group, it can use the CLONE_PARENT flag.

  is that the rationale behind that flag?  because i can't think of
another one offhand.  thanks.

rday
--

========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry:
    Have classroom, will lecture.

http://crashcourse.ca                          Waterloo, Ontario, CANADA
========================================================================

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [EMAIL PROTECTED]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to