简体   繁体   中英

Running same python from two different cores

Is there a problem in running a python script from two different processes on separate cores on a cluster. The script resides in a global folder (accesable by both processes):

/cluster/A.py

I am concerned about the pycache and other stuff python writes...? Do both cores have problems in generating the same pycache in folder /cluster/ Can I safely do this or are there some issues?

No there should be no problems. The __pycache__ folder only store compiled version of the code. So if the code does not change, you can run multiple python instances in parallel without any issue.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM