Is Stackless and uthread.py SMP friendly?
Aahz Maruch
aahz at panix.com
Tue Dec 19 11:55:54 EST 2000
In article <m38zpcwno8.fsf at chinon.cnrs-orleans.fr>,
Konrad Hinsen <hinsen at cnrs-orleans.fr> wrote:
>jbalding at hotmail.com writes:
>>
>> Okay. My next question: Is there a simple way of taking advantage of
>> multiple processors using Python, or is this something that is going to
>
>Unless your code spends most of its time in purpose-written C code,
>threads are not the way to go, so you need multiple independent Python
>processes.
That's not quite true. Most of the I/O calls in Python release the
global interpreter lock, so I/O heavy code tends to take advantage of
SMP quite well.
--
--- Aahz (Copyright 2000 by aahz at pobox.com)
Androgynous poly kinky vanilla queer het <*> http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6
This is a signature anti-virus.
Please stop the spread of signature viruses!
More information about the Python-list
mailing list