2011/11/4 Li Shen <lis365@gmail.com>
Thanks so much Pierre & Jeff!

Jeff, did you mean that I should do something like below to create a PythonInterpreter?

 PythonInterpreter interpreter = new PythonInterpreter(new PyStringMap(), new PySystemState());

Thanks!

Li

Hello Li,

I don't think so. Your threads are probably sharing the same modules. The modules are shared across all the threads of the process by default in Python. Having separate modules for each thread will take a lot more memory. So use it only if needed.

Pierre Thibault

Python Developer/Développeur Python
Montréal, QC
pierre.thibault1@gmail.com