[Stackless] Stackless on SMP

Bob Ippolito bob at redivi.com
Sun May 23 23:45:42 CEST 2004

On May 23, 2004, at 5:38 PM, Isaac wrote:

> Bob Ippolito wrote:
>> On May 23, 2004, at 4:42 PM, Isaac wrote:
>>> This might be an FAQ, but I'm not finding it anywhere...
>>> How well does Stackless take advantage of machines with multiple 
>>> processors, or Intel's Hyper-threaded processors?
>> It doesn't.  Python (CPython and derived implementations such as 
>> Stackless anyway) is designed in such a way that makes it impossible 
>> to take advantage of threads.  If you want to take advantage of 
>> multiple execution contexts then you need to use separate processes.
> Is there any hope for use poor neglected SMPers? Or is the problem too 
> deeply rooted in Python's design?

As I said, use separate processes if you need to distribute 
computation.  It's generally much easier to code and debug, and it has 
the added bonus that if you design your application in this way then 
you can easily distribute it amongst multiple computers, or on a single 
box with a bunch of CPUs.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2357 bytes
Desc: not available
URL: <http://www.stackless.com/pipermail/stackless/attachments/20040523/5e82c2ac/attachment.bin>
-------------- next part --------------
Stackless mailing list
Stackless at stackless.com

More information about the Stackless mailing list