Embedding: many interpreters OR one interpreter with many thread states ?

adsheehan at eircom.net adsheehan at eircom.net
Wed Jun 8 16:06:18 CEST 2005


Hi,

Does anyone know the reasoning or pros/cons for either (in a
multi-threaded C++ app):

- creating many sub-interpreters (Py_NewInterpreter) with a thread
state each

Or

- creating one interpreter with many thread states (PyThreadState_New)


When do I choose one approach over the other and why ?

Thanks

Alan




More information about the Python-list mailing list