i want to check present cpu usage ........

hi everyone...
my java application needs presnt cpu usage....

like i can get from task manager...
but i want from command line....

i can call external application for this ...
but tell me how to go for it...?

please reply... 1000 thanks in advance

Comments

  • : hi everyone...
    : my java application needs presnt cpu usage....
    :
    : like i can get from task manager...
    : but i want from command line....
    :
    : i can call external application for this ...
    : but tell me how to go for it...?
    :
    : please reply... 1000 thanks in advance
    :
    :
    One way is to use JNI to call the NdisGetCurrentProcessorCounts() function. See http://msdn2.microsoft.com/en-us/library/bb314462.aspx for more info on that API function.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion