Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Jan 2006 20:01:51 -0700 (MST)
From:      "M. Warner Losh" <imp@bsdimp.com>
To:        deischen@freebsd.org
Cc:        freebsd-current@freebsd.org, rwatson@freebsd.org, julian@elischer.org
Subject:   Re: kernel thread as real threads..
Message-ID:  <20060123.200151.127094205.imp@bsdimp.com>
In-Reply-To: <Pine.GSO.4.43.0601231954150.17167-100000@sea.ntplx.net>
References:  <43D56E79.60504@elischer.org> <Pine.GSO.4.43.0601231954150.17167-100000@sea.ntplx.net>

next in thread | previous in thread | raw e-mail | index | archive | help
In message: <Pine.GSO.4.43.0601231954150.17167-100000@sea.ntplx.net>
            Daniel Eischen <deischen@freebsd.org> writes:
: On Mon, 23 Jan 2006, Julian Elischer wrote:
: 
: > Robert Watson wrote:
: >
: >
: > well, the operation woudll continue for the parent only I woudl assume.
: >
: > > (although davidxu is changing that)
: >
: > I'm not convinced that that multiple threads should be allowed to
: > proceed during a fork
: > but I can see that not allowing it is more a "foot shooting avoidance"
: > than a requirement.
: > it could be allowed that if you do a fork and allow multipel threads to
: > runat the same time
: > and end up with an inconsistant address space in the child, then you get
: > what you deserve.
: > :-)
: 
: POSIX specifies that only 1 thread (the forking thread) is present
: after a fork.  If you want all (or some subset) of the parent's
: threads to exist after a fork(), you must call it something
: else (use a flag to rfork?) and ensure it is not the default
: behavior.

The problem that we have today is that single_thread suspends most,
but not all, of the threads.  There are many scenarios where one could
get deadlock if you are sleeping uninterruptably in one thread, but
interruptably in another.

Warner



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060123.200151.127094205.imp>