操作系统笔记进程管理之管理

Posted niuxu18

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了操作系统笔记进程管理之管理相关的知识,希望对你有一定的参考价值。

  • 调度
  1. context switch: save context(PCB), restore context(PCB). 开销
  2. 如何维护各个进程的状态:PCB + 队列(job队列,ready 队列,I/O设备队列)
  3. who is the next to run? :
    •  CPU调度器(短期100ms): good repsonse time
    • 接纳调度器(长期1+min): the degree of multiprogramming and mix of cpu- and i/o -bound processes
    • 内存调度器(中期):reduce the degree of multiprogramming according to available memory

  • 进程操作
    1. 创建:父子进程。fork, createProcess
    2. 进程协作:生产者、消费者问题
      • interprocess communication IPC[系统调用] 
      • 共享内存[独自管理]【关键点:停止生产和消费的条件。】
    3. 终止
  • IPC: pipe 管道, FIFO
    • 匿名管道:父子进程,单工 (0 for read, 1 for write)
    • 具名管道:任意进程,单、双工

以上是关于操作系统笔记进程管理之管理的主要内容,如果未能解决你的问题,请参考以下文章

操作系统笔记内存管理之分页,分段和段页式

java学习笔记之初识多线程

读书笔记之《操作系统概念》

Day7: Python学习笔记之Linux——系统监控

python笔记之psutil模块

Android笔记 - Binder之守护进程servicemanager