Simultaneous PyRun_SimpleFile's

"Martin v. Löwis" martin at v.loewis.de
Mon Jan 27 18:49:33 CET 2003


Devrim Erdem wrote:
> For simplicty I would prefer c threads, but I am not sure if the
> interpreter can run two PyRun_SimpleFile functions at the same time.

Your message lacks a question. I'll assume the question is "Can this be 
done?" to which the answer is "yes".

I recommend to use C threads; Python threads are really C threads. Just 
make sure you hold the GIL.

Regards,
Martin






More information about the Python-list mailing list