Python interpreters in threads crash the application
Aahz
aahz at pythoncraft.com
Thu Apr 16 08:22:18 EDT 2009
In article <74bec1d9-2109-4b9e-8e4d-541894a4d820 at f41g2000pra.googlegroups.com>,
grbgooglefan <ganeshborse at gmail.com> wrote:
>
>I have C application in which I have instantiated Python interpreter
>in each worker thread.
>
>When I start the program it crashes at different places in Python code
>but program never finishes normally.
>
>Can you please help me in following queries?
>1) Can we not use Python interpreters per thread instead of having a
>common shared Python interpreter at global level/ scope?
Theoretically you can, but each Python interpreter shares some objects
with others, so you still need to use the Python GIL.
--
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
Why is this newsgroup different from all other newsgroups?
More information about the Python-list
mailing list