Messages in this thread | | | Date | Thu, 24 Aug 2000 11:58:16 -0600 | From | yodaiken@fsmlabs ... | Subject | Re: SCO: "thread creation is about a thousand times faster than on |
| |
On Thu, Aug 24, 2000 at 08:27:39PM +0200, Andi Kleen wrote: > On Thu, Aug 24, 2000 at 11:28:42AM -0600, yodaiken@fsmlabs.com wrote: > > Right: so clone with the PARENT flag set. What's the problem? > > Then your original parent would see any thread deaths. Probably not > what you wanted.
Why not? As far as I know, POSIX says, when you fork, your child is not threaded; when you pthread_create, you create something that must be visible only from within the current process (it _may_ be visible elsewhere, but does not have to be). So iit makes sense for the original parent to be the only only parent of all threads within a process.
-- --------------------------------------------------------- Victor Yodaiken Finite State Machine Labs: The RTLinux Company. www.fsmlabs.com www.rtlinux.com
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/
| |