Multi Threading embedded python
- From: amit <amit@xxxxxxxxxxxxxxxx>
- Date: Thu, 30 Jun 2005 18:56:20 +0200
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 .
- Follow-Ups:
- Re: Multi Threading embedded python
- From: Pierre Barbier de Reuille
- Re: Multi Threading embedded python
- Prev by Date: Re: python 2.4: tarfile tell() and seek() seem to be broeken
- Next by Date: Re: Modules for inclusion in standard library?
- Previous by thread: I have a question.
- Next by thread: Re: Multi Threading embedded python
- Index(es):
Relevant Pages
|