Embedding: many interpreters OR one interpreter with many thread states ?
Greg Ewing
greg at cosc.canterbury.ac.nz
Wed Jun 8 23:00:42 EDT 2005
adsheehan at eircom.net wrote:
> - creating many sub-interpreters (Py_NewInterpreter) with a thread
> state each
>
> Or
>
> - creating one interpreter with many thread states (PyThreadState_New)
My understanding is that using multiple interpeters isn't
really supported properly, despite there being apparent
support in the API. So I suggest using a single interpeter
with multiple threads.
--
Greg Ewing, Computer Science Dept,
University of Canterbury,
Christchurch, New Zealand
http://www.cosc.canterbury.ac.nz/~greg
More information about the Python-list
mailing list