在 UNIX 中,我通过 ps aux 看到的 Ss、Sl 和 Ssl 进程类型是什么?

Jim*_*ket 42 unix process ps

在执行ps aux命令时,我看到一些进程被列为Ss,SslSl

这些是什么意思?

root     24653  0.0  0.0   2256     8 ?        Ss   Apr12   0:00 /bin/bash -c /usr/bin/python /var/python/report_watchman.py 
root     24654  0.0  0.0  74412    88 ?        Sl   Apr12   0:01 /usr/bin/python /var/python/report_watchman.py
root     21976  0.0  0.0   2256     8 ?        Ss   Apr14   0:00 /bin/bash -c /usr/bin/python /var/python/report_watchman.py 
root     21977  0.0  0.0  73628    88 ?        Sl   Apr14   0:01 /usr/bin/python /var/python/report_watchman.py
Run Code Online (Sandbox Code Playgroud)

ire*_*ses 54

ps 联机帮助页

   S    Interruptible sleep (waiting for an event to complete)

  For BSD formats and when the stat keyword is used, additional
  characters may be displayed:
  s    is a session leader
  l    is multi-threaded (using CLONE_THREAD, like NPTL pthreads do)
Run Code Online (Sandbox Code Playgroud)

  • 如有疑问,“男人”! (13认同)
  • 这是一个 10 年前的问题,但由于这是该问题的第一个 google 结果,我正在更新 ps 手册页的 URL 链接:https://www.freebsd.org/cgi/man.cgi?ps (2认同)