我使用 Ubuntu 12.04.1 Linux。我看到了一个进程的命令%CPU和C输出格式之间的区别ps。ps手册页中没有明确指出。
手册页说:
CODE HEADER DESCRIPTION
%cpu %CPU cpu utilization of the process in "##.#" format. Currently,
it is the CPU time used divided by the time the
process has been running (cputime/realtime ratio),
expressed as a percentage. It will not add up to 100%
unless you are lucky. (alias pcpu).
c C processor utilization. Currently, this is the integer
value of the percent usage over the lifetime of the …Run Code Online (Sandbox Code Playgroud)