Multi Threading embedded python
amit
amit at digitalpeers.com
Thu Jun 30 12:56:20 EDT 2005
Hello,
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
each thread.
2) Have one python interpreter, and implement a lock on it so it can't
be called simultaneously by multiple threads?
Thanks
Amit
More information about the Python-list
mailing list