为什么有些进程在顶部突出显示?

为什么有些进程在顶部突出显示?

为什么有些进程在 top 中突出显示?突出显示有特殊含义吗?谢谢!

在此处输入图片描述

答案1

为了扩展 Doug 的回答,请查看进程的状态。除三个突出显示的进程外,其他所有进程都处于 状态S,而三个突出显示的进程处于 状态R。进程状态在第 3a 节第 20 项中给出手册top

20. S  --  Process Status
   The status of the task which can be one of:
       D = uninterruptible sleep
       R = running
       S = sleeping
       T = traced or stopped
       Z = zombie

   Tasks  shown  as running should be more properly thought of as
   'ready to run'  --  their task_struct is simply represented on
   the Linux run-queue.  Even without a true SMP machine, you may
   see numerous tasks in this  state  depending  on  top's  delay
   interval and nice value.

要切换突出显示,请按y

y :Row-Highlight toggle
  Changes highlighting for "running" tasks.   For  additional
  insight into this task state, see topic 3a. DESCRIPTIONS of
  Fields, the 'S' field (Process Status).

  Use of this provision provides important insight into  your
  system's  health.   The only costs will be a few additional
  tty escape sequences.

答案2

3 个突出显示的进程是 3 个正在运行的进程。

相关内容