Re: Threads in linux.

Peter Samuelson (psamuels@sampo.creighton.edu)
Sat, 21 Aug 1999 15:39:13 -0500 (CDT)


[Ferdinand Prantl <prantl@ff.cuni.cz>]
> Cygwin has his own fork() and clone() implementation but it's a lot
> slower than win32 API for threads. I don't know why ...

You know how on Unix we implement spawn as fork+exec? Well, according
to Cygwin docs, they have to do the opposite: they implement fork as
spawn+exec! Along with a lot of weird code glue between "parent" and
"child" to get the POSIX semantics right. It's butt-ugly, no doubt.
Having read all that I understand why VMS used spawn to halfheartedly
emulate vfork+exec (the vfork just set a flag or something, the exec
did the spawn) and didn't [AFAIK] bother trying to implement a true
fork at all.

-- 
Peter Samuelson
<sampo.creighton.edu!psamuels>

- 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/