Subject: Re: The Right Way to implement threads?
To: Matthew Orgass <>
From: Jason R Thorpe <>
List: tech-kern
Date: 06/09/2000 23:05:16
On Sat, Jun 10, 2000 at 01:58:40AM -0400, Matthew Orgass wrote:

 > > Besides that, I'm not sure it makes sense. The resources being
 > > consumed by the kernel thread are its kernel stack, which isn't
 > > something that can be thrown away even if it is preempted.
 >   Why not?

For a very obvious reason -- the kernel stack (and U-area) for that
thread holds the state of that thread at the time of preemption.

        -- Jason R. Thorpe <>