i want to check present cpu usage ........ - Programmers Heaven

Howdy, Stranger!

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

Categories

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

deepak1018deepak1018 Posts: 2Member
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

  • zibadianzibadian Posts: 6,349Member
    : 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.