using python interpreters per thread in C++ program

grbgooglefan ganeshborse at gmail.com
Mon Sep 7 07:17:57 CEST 2009


Hi

I've a multi-threaded C++ program, in which I want to use embedded
python interpreter for each thread. I am using Python 2.6.2 on Linux
for this.

When I tried to embed python interpreter per thread, I got crash when
the threads were calling Python's C APIs.

Can we not use python interpreters even private to each multiple
thread?

What is best way to embed python in multi-threaded C++ application?

Please guide.



More information about the Python-list mailing list