Hi
In my stats program I have a a lot of big loops to process some log files, and each time the CPU goes all the way up to 100% even I had set priority to the lowest (IDLE_PRIORITY_CLASS)
I tried this code to prevent the CPU to go so high:
UBYTE sleep_counter = 0;
for (i = 0; i < size; i++)...
Ahh good... It was just some guy that told me that it was difficult to change the priority the proper way.. But I have tested it on 6 different computers now, and it seems to work :)
Hi
I'm using this code to change the priority of my prog. Is it safe to use? Seems to work :)
struct hProcess *pr;
pr = GetCurrentProcess ();
SetPriorityClass (pr, BELOW_NORMAL_PRIORITY_CLASS);
SuperHebbe
www.superhebbe.com
Hi
This is my first post here :D
I my to programming on Windows cause I'm used to Amiga (RIP)
The question is: I have made a program that generates statistics files from hl2dm and the program is in a forever loop.. When I quit the console app, does it free the memory or do I have to call some...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.