[EMAIL PROTECTED] (Colin Watson) writes: > You could try 'vmstat 1', which will poll every second. Ignoring the > first line, which is an "up to the time vmstat was started" figure, the > last field in each line is the percentage of time the CPU is idle.
Cool! Where could I get its source code? Or would anyone tell me if there is a system call or C function to get the percentage of time the CPU has been idle? Thanks! -- Arcady Genkin Don't read everything you believe.