Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Trying to find a more cpu effecent way of doing this.
Post: RE: Trying to find a more cpu effecent way of doin...

Yes I understand that it will kill one program then wait 3 seconds then kill the next in the array. It was a failed attempt to have the program not eating up so much cpu. I figured the time.sleep gett...
rawrmonster General Coding Help 8 4,248 Dec-16-2017, 07:27 AM
    Thread: Trying to find a more cpu effecent way of doing this.
Post: RE: Trying to find a more cpu effecent way of doin...

Yes I know this will never end and it is getting attached to a thread which is why I am looking for this to be more efficient. I am having this function using 33% or more cpu which is why I am trying ...
rawrmonster General Coding Help 8 4,248 Dec-16-2017, 07:08 AM
    Thread: Trying to find a more cpu effecent way of doing this.
Post: Trying to find a more cpu effecent way of doing th...

def KillProcess(list): while(True): for program in list: for proc in psutil.process_iter(): if proc.name() == program: proc.kill() ...
rawrmonster General Coding Help 8 4,248 Dec-16-2017, 06:51 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020