Embedding Python, threading and scalability

Alan Kennedy alanmk at hotmail.com
Fri Jul 11 06:27:49 EDT 2003


[Aahz]

>>...the way to scale Python in a threaded environment is to call out
>> to a C extension that releases the GIL.

Simon Wittber (Maptek) wrote:

> To write scalable applications in Python, one must write the
> 'scalabilty-required' parts n C.

Or Pyrex? Or Boost? 

Do either of these products release the GIL when control is
transferred to the C/C++ extensions?

> Does anyone else see this as a problem?

Comparatively, perhaps. But certainly less of a problem than writing
your entire program in C++, for example.

Perhaps easiest to write the whole thing in jython, if the jython free
threading claim is true? Ype? Aahz? I'd really like to know the truth
of the assertion that jython will utilise all processors in a
multi-processor box.

regards,

-- 
alan kennedy
-----------------------------------------------------
check http headers here: http://xhaus.com/headers
email alan:              http://xhaus.com/mailto/alan




More information about the Python-list mailing list