B16:Python Program to assign nice values to processes and dynamically monitor them.
Program:
import os,psutilprint "enter the process id\n"
pi=input()
p=psutil.Process(pi)
print p.nice
var=input("please enter nice value:\n")
p.nice=var
print p.nice
id1=input("Enter process id")
p1=psutil.Process(id1)
# please import psutil.python-fc.rpm and install
#execute this application in eclipse only
0 comments:
Post a Comment