在Top程序中,进程处于状态I意味着什么?

在Top程序中,进程处于状态I意味着什么?

我正在使用 procps-ng 包中的 Top,版本 3.3.12。手册页遗漏了 I 状态所代表的含义

28. S  --  Process Status
    The status of the task which can be one of:
        D = uninterruptible sleep
        R = running
        S = sleeping
        T = stopped by job control signal
        t = stopped by debugger during trace
        Z = zombie

我看到很多root进程都处于这种状态,这是什么意思?

答案1

“闲置的”。

源代码:

   switch (this->state) {
      case 'R':
         Frame_running++;
         break;
      case 't':     // 't' (tracing stop)
      case 'T':
         Frame_stopped++;
         break;
      case 'Z':
         Frame_zombied++;
         break;
      default:
         /* currently: 'D' (disk sleep),
                       'I' (idle),
                       'P' (parked),
                       'S' (sleeping),
                       'X' (dead - actually 'dying' & probably never seen)
         */
         Frame_sleepin++;
         break;
   }

相关内容