OShomework4

  • Question 1: In xv6, one process contains only one thread. If we allow one process contains multiple thread, which state of the original PCB (process control block) should be per-thread and which should be per-process?
    OShomework4_第1张图片
    进程和线程

    所以在 PCB 中的内容
OShomework4_第2张图片
image.png

其中 Per Thread 的有:stack、PC、registers
Per Process 的有:Process state、cpu scheduling info、Momory-management info、Accounting info 和 I/O status info。

你可能感兴趣的:(OShomework4)