Linux进程状态代码'I'

时间:2018-03-21 10:27:56

标签: linux kernel ps

我是linux内核的新手。 我刚看到内核状态为ps ax。 我看了man ps手册和谷歌。

最后我找不到STAT I表示的内容。 很多kworkers或文件系统都处于I状态。 所以,我认为这是一种新的状态分类,因为手册没有解释,而且它属于内核。 我想知道这个I状态是什么以及什么时候创建的?

我的意思是l表示“进程是多线程的”状态。 我在最新的archlinux上运行它。

1 个答案:

答案 0 :(得分:0)

ps查询procfs - /proc/[PID]/stat - 用于进程状态。 proc(5)说:

  

的/ proc / [PID] / STAT

         Status information about the process.  This is used by ps(1).
         It is defined in the kernel source file fs/proc/array.c.

fs/proc/array.c表示这些任务无效。