原文:https://blog.csdn.net/lyndon_li/article/details/114295654

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)

TASK_INTERRUPTIBLE 和TASK_UNINTERRUPTIBLE 的区别

TASK_INTERRUPTIBLE:是可以被信号和wake_up()唤醒的,当信号到来时,进程会被设置为可运行。

TASK_UNINTERRUPTIBLE:只能被wake_up()唤醒。

最新文章

  1. Win10系统出问题?简单一招即可修复win10!
  2. RapidJSON 代码剖析(三):Unicode 的编码与解码
  3. Excel—身份证生日提取
  4. linux解压/压缩文件
  5. C#开发分享:如何改变系统鼠标样式
  6. javac命令出现“**.java使用了未经检查或不安全的操作”
  7. Swift学习--闭包中的懒加载(四)
  8. asp.net的心得体会
  9. 进程间通信之POSIX信号量
  10. ESX与ESXi管理员必备25个命令
  11. MZL&#39;s xor
  12. 1.1.3.托管对象上下文(Core Data 应用程序实践指南)
  13. gradlew和gradle的区别
  14. HashMap是如何实现快速存取的
  15. 【知名的移动APP和网站设计工具】Sketch for Mac 54.1
  16. linux基础命令一
  17. linux学习笔记-解决google-chrome打开后弹出输入密码以解锁您的登录密钥环的提示
  18. Qt5.7 + VS2015 环境搭建
  19. python中logging模块使用
  20. SevenZipShaper压缩类

热门文章

  1. quasar打包时:Module not found: Can&#39;t resolve imported dependency &quot;dayjs/plugin/customParseFormat&quot;
  2. NOIP 模拟赛 左右横跳
  3. Gridea,一个小而美的博客梦想桥梁
  4. CSS 子代选择器(&gt;)
  5. PostgreSQL性能优化综合案例 - 1
  6. Apache HttpClient使用和源码分析
  7. Linux系统对于实施人员的价值
  8. Day 23 23.2:逆向前期准备
  9. CF1764G1 题解
  10. rancher 修改域名