running "PyRun_SimpleFile()" several times

Thomas Lambert thomas.lambert at ndsatcom.de
Fri Jul 14 04:28:45 EDT 2000


Hello,
I want to run "PyRun_SimpleFile()" several times in several threads at
the same time.
Under Linux using pthread.
Now I have the problem that only one "PyRun_SimpleFile()" can run at the
same time, else errors occur (segmentation faults, ...).
My Question: can I call "PyRun_SimpleFile()" more than one time at the
same time, e.g. in multiple threads? Is this function thread-save?

Thank you very much!


Thomas Lambert






More information about the Python-list mailing list