(3.1)进程与线程 |
您所在的位置:网站首页 › 内核枚举进程 › (3.1)进程与线程 |
pid_t pid;进程process IDuid_t uid,euid;进程属性:用户ID,有效用户IDgid_t gid,egid; volatile long state;进程状态int exit_state;进程退出的状态 下面是进程的调度信息:unsigned int rt_priority;进程的优先级unsigned int policy;调度策略的相关字段 组织进程的链表信息:struct list_head tasks;struct task_struct *real_parent;struct task_struct *parent;struct list_head children,sibling; 文件系统管理相应的信息:(1)进程和文件系统的关联:目录和根目录struct fs_struct *fs;(2)对所有打开文件的组织struct files_struct *files; 进程对于内存的管理:struct mm_struct *mm; 进程间通信机制:体现在和进程相关联的描述符,以及指向进程的信号处理程序的描述符struct signal_struct *signal;struct sighand_struct *sighand; 进程包含了时间和定时器相关的信息:(1)cputime_t utime, stime;用于记录进程在用户态,内核态所经历的节拍数;(2)struct timespec start_time;进程创建时间;struct timespec real_start_time;real_start_time还包含了进程睡眠时间; |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |