简体   繁体   English

同时从并行Shell脚本调用Python脚本

[英]Call a Python Script from parallel shell scripts at the same time

I have a question about the Python Interpreter. 我对Python解释器有疑问。 How does is treat the same script running 100 times, for example with different sys.argv entries? 如何处理同一脚本运行100次,例如使用不同的sys.argv条目? Does it create a different memory space for each script or something different? 它会为每个脚本创建不同的内存空间还是有所不同?

System is Linux , CentOS 6.5. 系统是Linux,CentOS 6.5。 Is there any operational limit that can be observed and tuned? 是否存在可以观察和调整的操作限制?

You won't have any problem with what you're trying to do. 您尝试做的事情不会有任何问题。 You can call the same script in parallel a lot of times, with different input arguments. 您可以使用不同的输入参数多次并行调用同一脚本。 ( sys.argv entries). sys.argv条目)。 For each run, a new memory space will be allocated. 对于每次运行,将分配一个新的内存空间。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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