Embedding python/multi-thread env
Rich Salz
salzr at certco.com
Tue Jul 27 16:40:05 EDT 1999
You're right, I wasn't clear enough. You can create multiple interpreters,
but
you still must serialize all python calls -- e.g., don't have two threads
trying to
create an interpreter at the same time.
Gordon McMillan wrote in message <1279107155-5981362 at hypernet.com>...
Rich Salz wrote:
> I believe that you cannot create multiple interepreters in a single
> executable. The python global lock is to prevent *threads* within
> the interpreter from stomping on each other's critical sections.
Sure can; it's part of the API. They still share the global lock, but
they can have completely different sets of modules loaded, etc.
- Gordon
More information about the Python-list
mailing list