multi-core software

Jeff M. massung at gmail.com
Sat Jun 6 23:08:29 EDT 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