عداد عملية منصة عبر منصة لبثون؟
-
15-11-2019 - |
سؤال
أحتاج إلى وحدة عبر منصة تتيح لي أن تعداد العمليات على الجهاز.يحتاج إلى العمل على Windows و UNIX، والحصول على أشياء مثل أسماء PID ومعالجة.
هل هناك هذه الوحدة؟
المحلول
psutil should work nicely for this.
"psutil is a module providing an interface for retrieving information on all running processes and system utilization (CPU, memory) in a portable way by using Python, implementing many functionalities offered by command line tools like ps, top, kill, lsof and netstat."
لا تنتمي إلى StackOverflow