正在加载图片...
Linux26进程的状态 00163 00164: Task state bitmask, note! these bits are also 00165: *encoded in fs/ proc/array c: get task stateo 00166 00167: * We have two separate sets of flags: task->state 00168: is about runnability while task ->exit state are 00169: about the task exiting Confusing, but this way 00170: modifying one set can t modify the other one by 00171:* mistake 00172: include/ linux/sched. h 00173: #define TASK RUNNING 0 00174: *define TASK INTERRUPtIble 1 00175: *define TASK UNINTERRUPTIBLE 2 00176: #define TASK STOPPED 00177: #define TASK TRACED 8 00178:/* in tsk->exit state k 00179: #define EXIT ZOMBIE 1 00180: #define EXIT DEAD 32 简单过一下,与状态相关的一些宏 00181:/ in tsk->state again 1)组合状态 00182: #define taSK dead 2)状态判断 00183:# define TAsK WAKEKILL1283)状态设置 2021/2/6 Linux操作系统分析 8/65 嵌入式系统实验室 EMBEDDED SYSTEM LAB口RAT口RY SU:MDU INTHUTE OR AOVANCLD STUOY D USTt2021/2/6 Linux操作系统分析 8/65 Linux2.6进程的状态 简单过一下,与状态相关的一些宏 1)组合状态 2)状态判断 3)状态设置 include/linux/sched.h
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有