简体   繁体   English

Python 进程管理

[英]Python process management

Is there any way python is natively, or through some code available online (preferably under the GPL), capable of doing process management.有什么办法 python 是本机的,或者通过一些在线可用的代码(最好是在 GPL 下),能够进行进程管理。 The goal is similar to the functionality of ps, but preferably in arrays, lists, and/or dicts.目标类似于 ps 的功能,但最好在 arrays、列表和/或字典中。

This one is cross-platform: http://code.google.com/p/psutil/这个是跨平台的: http://code.google.com/p/psutil/

If you're not interested in a module, you might also have a look at the /proc filesystem, procfs.如果您对模块不感兴趣,您还可以查看/proc文件系统 procfs。

There is something out there called ProcessManager , but I have not used it before.有一个叫做ProcessManager的东西,但我以前没有使用过它。

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

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