Messages in this thread | | | Date | Mon, 21 Apr 2008 02:48:53 +0300 | From | Avi Kivity <> | Subject | Re: x86: 4kstacks default |
| |
Bernd Eckenfels wrote: > A question along this line. Why is the Userspace Thread bound to a > Kernel-Space Stack at all? I could imagine a solution like Stack Pools > assigned only of a Thread enters kernel space, or something like this? > >
The vast majority of threads are sleeping (with a stack footprint in the kernel). If you have an N-way system, at most N threads can be in userspace at any given moment.
You could multiplex several userspace threads on one kernel thread (the M:N model), but it gets fairly complex.
-- Do not meddle in the internals of kernels, for they are subtle and quick to panic.
| |