Subject: Re: COMPAT_MACH and lwp
To: Emmanuel Dreyfus <>
From: Jason R Thorpe <>
List: tech-kern
Date: 01/26/2003 12:23:18
On Sun, Jan 26, 2003 at 08:30:05PM +0100, Emmanuel Dreyfus wrote:

 > Why newlwp does not do it for us? It could be disabled by a flag if it
 > is necessary. The current scheme encourage code duplication.

Because that would lead to a race condition on MP systems; after the
new LWP is created, the caller needs to set it up, and thus it needs
to ensure that it is not runnable until it is fully constructed.

        -- Jason R. Thorpe <>