Re: Slow pthread_create() under high load

From: Linus Torvalds (torvalds@transmeta.com)
Date: Tue Mar 28 2000 - 15:17:35 EST


On Tue, 28 Mar 2000, Richard Gooch wrote:
>
> You would need to wrap up fork(2) as well, to clear the cached value
> for the child.

Yes, the child has to clear the value after a fork().

> And what about getppid(2)? This one is tricky, because it can actually
> change.

getppid() should be already handled correctly by the CLONE_PARENT thing,
so that shouldn't need any special attention.

                Linus

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Mar 31 2000 - 21:00:23 EST