DragonFly BSD
DragonFly users List (threaded) for 2005-01
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: On SMP


From: "Jonas Sundström" <jonas@xxxxxxxxxxx>
Date: Sun, 23 Jan 2005 13:49:08 +0100 CET

Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx> wrote:
 ...
>     (1) The concept of a user 'thread'.  Every user thread has
>     an execution context and its own stack, and other things.
> 
>     (2) The concept of a kernel context, used when the 
>     userland thread performs a system call. 
>     A kernel context needs its own stack.
> 
>     Now, in a non-threaded program there is only one user 
>     'thread' and only one kernel context (the kernel process).
 ...
>       The library creates a kernel context for each cpu and 
>       manages any number of threads using those fixed 
>       number of contexts.

How can a userland(?) library set up a kernel context?

/Jonas Sundström.                www.kirilla.com




[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]