Multiple independent embedded Python Interpreters on multiple operating system threads invoked from C/C++ program
问题 Embedding Python interpreter in a C/C++ application is well documented. What is the best approach to run multiple python interpreter on multiple operating system threads (i.e. one interpreter on one operating system thread within the same process) which are invoked from the C/C++ application? Such applications may also have problems related to memory fragmentation and limitations of Py_Finalize(). One such approach can be the following: Python thread and hence GIL disabled in pyconfig.h to