Re: Set process priority in Windows XP
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Re: Set process priority in Windows XP

From: David Gravereaux <davygrvy@pobox.com>
Date: Wed Dec 28 2005 - 10:15:35 CET

On 27 Dec 2005 07:03:07 -0800, "jimwu88NOOOSPAM@yahoo.com"
<jimwu88NOOOSPAM@yahoo.com> wrote:

>Is there a function which can set the process priority in Windows XP?
>
>Thanks,
>Jim

You risk resource starvation if you get into that stuff. More
efficient inner loops is a better way to improve performance. If you
really do need to up the priority, sounds like the other apps are the
problem, not yours (IMO).

Take for example a great little program called prime95
[http://www.mersenne.org]. It crunches prime numbers that are ~10
million digits long and takes about a month to process one. It'll max
your CPU to full-out forever. But it does so "in the background" with
respect to all other apps by running at the lowest priority. And good
that it does, cause I like to play Doom ]|[ at max resolution ;)

What I'm saying is, look at lowering others instead of raising one or
else you get into a mini arms race :)
Received on Tue Jan 3 03:09:24 2006