2025年4月12日 星期六 乙巳(蛇)年 正月十三 设为首页 加入收藏
rss
您当前的位置:首页 > 计算机 > 系统应用 > Linux

Linux 进程状态 Ss、Sl、S+、Z、I< 等是什么意思?

时间:11-22来源:作者:点击数:33
CDSY,CDSY.XYZ

Linux 进程状态 Ss、Sl、S+、Z、I< 等是什么意思?

man ps

  • ...
  • PROCESS STATE CODES
  • Here are the different values that the s, stat and state output
  • specifiers (header "STAT" or "S") will display to describe the state of
  • a process:
  • D uninterruptible sleep (usually IO)
  • I Idle kernel thread
  • R running or runnable (on run queue)
  • S interruptible sleep (waiting for an event to complete)
  • T stopped by job control signal
  • t stopped by debugger during the tracing
  • W paging (not valid since the 2.6.xx kernel)
  • X dead (should never be seen)
  • Z defunct ("zombie") process, terminated but not reaped by
  • its parent
  • For BSD formats and when the stat keyword is used, additional
  • characters may be displayed:
  • < high-priority (not nice to other users)
  • N low-priority (nice to other users)
  • L has pages locked into memory (for real-time and custom IO)
  • s is a session leader
  • l is multi-threaded (using CLONE_THREAD, like NPTL pthreads
  • do)
  • + is in the foreground process group
  • D (TASK_UNINTERRUPTIBLE) 不可中断的睡眠状态
  • R (TASK_RUNNING) 正在运行,或在队列中的进程
  • S (TASK_INTERRUPTIBLE) 可中断的睡眠状态
  • T (TASK_STOPPED) 停止状态
  • t (TASK_TRACED) 被跟踪状态
  • Z (TASK_DEAD - EXIT_ZOMBIE) 退出状态,但没被父进程收尸,成为僵尸状态
  • W 进入内存交换(从内核2.6开始无效)
  • X (TASK_DEAD - EXIT_DEAD) 退出状态,进程即将被销毁
  • < 高优先级
  • N 低优先级
  • L 有些页被锁进内存
  • s 包含子进程
  • + 位于前台的进程组;
  • l 多线程,克隆线程 multi-threaded (using CLONE_THREAD, like NPTL pthreads do)
在这里插入图片描述
CDSY,CDSY.XYZ
方便获取更多学习、工作、生活信息请关注本站微信公众号城东书院 微信服务号城东书院 微信订阅号
推荐内容
相关内容
栏目更新
栏目热门
本栏推荐