Systems idle process
Can someone help me out in finding the System's Idle Process time or System's Idle Process's memory usage for windows.
(Depending on this i need to do some computation)
I dont think any ready methods available and i am also new to JNI programmining.
Kindly help me out,
Thanks,
Muthu
Put in your java code:
native long getIdleProcessCPU();
native long getIdleProcessMemory();
static {
System.loadLibrary("idle_lib");
}
Generate header file for your class with javah tool.
Write C functions which read idle process info (WINAPI).
Compile and link C functions to idle_lib.dll library with one of free distributed compilers !
That's all.