multi-thread python interpreaters and c++ program

Floris Bruynooghe floris.bruynooghe at gmail.com
Wed Jun 10 13:56:51 CEST 2009


On Jun 9, 6:50 am, "myopc" <my... at aaa.com> wrote:
>   I am ruuning a c++ program (boost python) , which create many python
> interpreaters and each run a python script with use multi-thread
> (threading).
> when the c++ main program exit, I want to shut down python interpreaters,
> but it crashed.

Your threads are daemonic, you could be seeing http://bugs.python.org/issue1856
You'll have to check your stack in a debugger to know.  But as said
this can be avoided by making the threads finish themself and joining
them.

Regards
Floris



More information about the Python-list mailing list