Multi Threading embedded python
amit at digitalpeers.com
Thu Jun 30 18:56:20 CEST 2005
I am embedding a python script in a C++ application. The script can be
called simultaneously from multiple threads.
What is the correct way to implement this situation:
1) Have unique python interpreter instantiations ( Py_Initialize() ) for
2) Have one python interpreter, and implement a lock on it so it can't
be called simultaneously by multiple threads?
More information about the Python-list