multi-core software

Jeff M. massung at gmail.com
Sun Jun 7 05:08:29 CEST 2009


On Jun 6, 9:58 pm, Paul Rubin <http://phr...@NOSPAM.invalid> wrote:
> George Neuner <gneun... at comcast.net> writes:
> > Even the lightest weight
> > user space ("green") threads need a few hundred instructions, minimum,
> > to amortize the cost of context switching.
>
> I thought the definition of green threads was that multiplexing them
> doesn't require context switches.

There's always a context switch. It's just whether or not you are
switching in/out a virtual stack and registers for the context or the
hardware stack/registers.

Jeff M.



More information about the Python-list mailing list