Running Python on SMP machine
Alex Martelli
aleaxit at yahoo.com
Mon Oct 9 03:13:00 EDT 2000
"Aahz Maruch" <aahz at panix.com> wrote in message
news:8rrks8$a1a$1 at panix3.panix.com...
> In article <kubswv16xr.fsf at lasipalatsi.fi>,
> Erno Kuusela <erno-news at erno.iki.fi> wrote:
> >>>>>> "William" == William Park <parkw at better.net> writes:
> >
> > | How do I take advantage of a SMP (2 CPU) machine?
> >
> >use separate processes.
>
> Why? Why not use threads?
Perhaps because of Python's single interpreter lock...? If all
your threads are running Python bytecode, I do not think you will
ever be using the second CPU (haven't tried it, but this seems
to be the effect of the current architecture as I understand it).
Alex
More information about the Python-list
mailing list