正在加载图片...
Linux2.6进程的状态 00163: 00164: Task state bitmask.NOTE!These bits are also 00165: 米 encoded in fs/proc/array.c:get_task_state(). 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:#defineTASK_STOPPED 4 00177: #define TASK_TRACED 8 00178:/in tsk->exit state 00179:#define EXIT ZOMBIE 16d 00180:#define EXIT DEAD 32 简单过一下,与状态相关的一些宏 00181: /in tsk->state again 米 1)组合状态 00182: #define TASK DEAD 64 2)状态判断 00183:#define TASK WAKEKILL 128 3)状态设置 嵌入式系统实验室 2023/7/14 Linux操作系统分析 8/65 EMBEDDED SYSTEM LABORATORY 5uE料DUAN0 ITUTE FOR AOVANCED5 FUOY OF U百TC2023/7/14 Linux操作系统分析 8/65 Linux2.6进程的状态 简单过一下,与状态相关的一些宏 1)组合状态 2)状态判断 3)状态设置 include/linux/sched.h
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有