【7】linux进程管理-2-3.pptVIP

  • 11
  • 0
  • 约2.03万字
  • 约 66页
  • 2017-05-29 发布于四川
  • 举报
上次内容 虚拟空间=内核空间+进程空间 进程控制块 进程队列组织 查2.4内核: struct task_struct { … struct list_head run_list; struct task_struct *next_task, *prev_task; struct task_struct *p_opptr, *p_pptr, *p_cptr, *p_ysptr, *p_osptr; … struct task_struct *pidhash_next; struct task_struct **pidhash_pprev; … } 当前进程pcb在内核栈底端 内核定义current宏可方便找到它: esp 偏移8K= 8192 查找某个进程 init_task链表 与运行相关current 散列表 struct task_struct *pidhash[PIDHASH_SZ] find_task_by_pid(PID) 冲突时:*pidhash_next; 三、进程创建、终结及相关系统调用 1.进程状态 可运行态 运行 就绪 睡眠(等待)态 浅度:等待资源有效时,被信号或时钟中断唤醒 深度:不能由其他进程通过信号和时钟中断唤醒 暂停态:暂时停止接受某种处理如程序调试(挂起) 僵死态:执行接受但尚未消亡,尚未释放pcb linux——“写时

文档评论(0)

1亿VIP精品文档

相关文档