Dec-16-2017, 06:51 AM
def KillProcess(list): while(True): for program in list: for proc in psutil.process_iter(): if proc.name() == program: proc.kill() time.sleep(3)This does what I need it to but I am using about 33% of the cpu. I am trying to find different ways of doing this that might be easy on my system.