BillW50 wrote:
In ,
Ron Hardin wrote:
Is there a C call to get current processor usage
and memory, such as you get from Task Manager?
I'm trying to self-regulate a long running
background process.
Regulate in what way? Process Lasso does a very good job of taming
processes and leaves those that you don't want to be touched.
Process Lasso Free - Auto-optimize process priorities and much more!
http://www.bitsum.com/prolasso.php
--
Bill
Gateway M465e ('06 era) - OE-QuoteFix v1.19.2
Centrino Core Duo T2400 1.83GHz - 2GB - Windows XP SP3
If it's cpu busy, sleep for a while and look again; if it's up around max memory,
don't launch another job until it's down again.
The question is how to get the numbers.
These are background cpu-bound processes that run for weeks.
--
On the internet, nobody knows you're a jerk.