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

Tim*_*Tim 18 top

为什么某些进程在顶部突出显示?高亮有特殊含义吗?谢谢!

在此处输入图片说明

mur*_*uru 19

要扩展 Doug 的回答,请查看流程的状态。除了三个突出显示的进程外,所有进程都处于状态S,并且三个突出显示的进程都处于状态R。过程状态top联机帮助页的第 3a 节第 20 项中给出:

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.
Run Code Online (Sandbox Code Playgroud)

要切换突出显示,请按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.
Run Code Online (Sandbox Code Playgroud)


Dou*_*ies 6

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