System Idle State
-
Hi, I want to check the system idle state, and want to do some operations on the idle time. I had created a thread to check the system idle state. My idle state conditions are 1. CPU usage must be less than 10% 2. There must be no load on the hard disc. First condition is ok( I can use GetSystemTimes() to get the idle time...pls mention if any other suggessions ) But how can I check the hard disc load? Regards, Ajay:doh:
-
Hi, I want to check the system idle state, and want to do some operations on the idle time. I had created a thread to check the system idle state. My idle state conditions are 1. CPU usage must be less than 10% 2. There must be no load on the hard disc. First condition is ok( I can use GetSystemTimes() to get the idle time...pls mention if any other suggessions ) But how can I check the hard disc load? Regards, Ajay:doh:
Im sure there are one (or more) performance counters that you can use for disk activity, if not, WMI might be able to help 'g'
-
Im sure there are one (or more) performance counters that you can use for disk activity, if not, WMI might be able to help 'g'
-
Hi, I want to check the system idle state, and want to do some operations on the idle time. I had created a thread to check the system idle state. My idle state conditions are 1. CPU usage must be less than 10% 2. There must be no load on the hard disc. First condition is ok( I can use GetSystemTimes() to get the idle time...pls mention if any other suggessions ) But how can I check the hard disc load? Regards, Ajay:doh:
Ajaywinds wrote:
I had created a thread to check the system idle state.
Why not just use
GetLastInputInfo()
?
"The largest fire starts but with the smallest spark." - David Crow
-
Ajaywinds wrote:
I had created a thread to check the system idle state.
Why not just use
GetLastInputInfo()
?
"The largest fire starts but with the smallest spark." - David Crow
-
Hi, I want to check the system idle state, and want to do some operations on the idle time. I had created a thread to check the system idle state. My idle state conditions are 1. CPU usage must be less than 10% 2. There must be no load on the hard disc. First condition is ok( I can use GetSystemTimes() to get the idle time...pls mention if any other suggessions ) But how can I check the hard disc load? Regards, Ajay:doh:
-
Why not do the processing in a subthread created with the THREAD_PRIORITY_IDLE thread priority?
You may be right
I may be crazy
-- Billy Joel --Within you lies the power for good, use it!!!