2011/11/4 Li Shen <firstname.lastname@example.org>
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());
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.