Search:

Type: Posts; User: hooshdar3

Search: Search took 0.10 seconds.

  1. Replies
    23
    Views
    2,681

    Re: getProcessCPUTime()

    Yes Norm I have. What is JNI and how to use it?
  2. Replies
    23
    Views
    2,681

    Re: getProcessCPUTime()

    But I need to get CPU speed.
  3. Replies
    23
    Views
    2,681

    Re: getSystemCpuload()

    no.'queue' is defined:

    the problem is in the RHS of the assignment
  4. Replies
    23
    Views
    2,681

    getSystemCpuload()

    Hi.
    What's wrong with my invokation of getSystemCpuLoad?
    Here is How my code looks like:

    OperatingSystemMXBean osBean = (com.sun.management.OperatingSystemMXBean)...
  5. Replies
    23
    Views
    2,681

    Re: getProcessCPUTime()

    I don't understand what does it mean that the function and what's the use of it
  6. Replies
    23
    Views
    2,681

    Re: getProcessCPUTime()

    Please....What does the function do exactly?I cannot understand the document completely
  7. Replies
    23
    Views
    2,681

    Re: getProcessCPUTime()

    It says it is part of OperatingSystemMXBean interface, but I don't know how to use interfaces

    --- Update ---

    I managed to get itt compiled and run, by adding:


    But I don't know How...
  8. Replies
    23
    Views
    2,681

    Re: getProcessCPUTime()

    I just wanna use 'getProcessCpuTime()
  9. Replies
    23
    Views
    2,681

    Re: getProcessCPUTime()

    I want to get CPU speed + Memory usage and maybe other administrating information
  10. Replies
    23
    Views
    2,681

    Re: getProcessCPUTime()

    OK.I changed line42 to:



    after the 2nd code snippet on:
    java - get OS-level system information - Stack Overflow

    But I get more errors
    (I have also imported...
  11. Replies
    23
    Views
    2,681

    Re: getProcessCPUTime()

    My terminal screen reads: (I am on ubuntu 12.04 LTS):

    But I apparently have imported that. Isn't Java 'import' = C++ using?
  12. Replies
    23
    Views
    2,681

    getProcessCPUTime()

    Hi.
    What is the error at line 42?


    import java.io.*;
    import java.util.*;
    import com.sun.management.OperatingSystemMXBean;
    import java.lang.management.ManagementFactory;
    import...
Results 1 to 12 of 12