* Alexander N. Kabaev <[EMAIL PROTECTED]> [010304 09:58] wrote:
>
> On 04-Mar-2001 Jordan DeLong wrote:
> > Hey; I've got a question about the pthread implementation on freebsd. I was
> > looking it over and noticed that the pthread library is green; which is
> > disadvantagous on SMP machines. I found a port of the linux pthreads, but it
> > uses rfork() to create the new threads...
>
> Why do you think that clone syscall on Linux is any different than rfork with
> appropriate parameters on FreeBSD?
>
> > Anyway; I was curious if a clone() call is in the works for freebsd 5.0? And
> > if not, is there much interest in getting one at some point, or are there
> > other
> > factors that'd make implemention of one right now more difficult than it
> > would
> > seem?
> >
> > -Jordan
>
> There is nothing clone syscall can offer which cannot be done with rfork, so
> implementing it would be a waste of time, IMHO.
Actually, clone() returns to your program with the stack fixed up
so that you don't crash immediately, FreeBSD has a way of doing
this, it's documented in the manpages and through disucssion on
the mailing lists.
--
-Alfred Perlstein - [[EMAIL PROTECTED]|[EMAIL PROTECTED]]
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message