Re: SCO: "thread creation is about a thousand times faster than on

Date: Sun Aug 27 2000 - 20:59:19 EST

On Sun, Aug 27, 2000 at 07:33:22PM -0700, Linus Torvalds wrote:
> In article <>,
> <> wrote:
> >
> >In the POSIX spec fork demolishes all threads in the child. This is the
> >only sensible answer and it seems wasteful to ignore the rare sensible
> >parts of the POSIX spec.
> What?

I said it poorly. In the POSIX spec, the child is born single threaded.
To quote:

 16) A process is created with a single thread. If a multithreaded process
    calls fork(), the new process shall contain a replica of the calling
    thread and its entire address space, possibly including the states of
    mutexes and other resources. Consequently, to avoid errors,
    the child process may only execute async-signal safe operations
    (see until such time as one of the exec functions is called.
    If {_POSIX_THREADS} is defined, fork handlers may be established
    by means of the pthread_atfork() function in order to maintain
    qpplication invariants across fork() calls.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

This archive was generated by hypermail 2b29 : Thu Aug 31 2000 - 21:00:20 EST