典型进程信息:
Process Management | Memory Management | File Management |
---|---|---|
Registers | Pointer to text segment | Root directory |
Program counter | Pointer to data segment | Working directory |
Program status word | Pointer to stack segment | File descriptors |
Stack pointer | User Identity | |
Process state | Group Identity | |
Priority | ||
Scheduling parameters | ||
Process Identity | ||
Parent process | ||
Process group | ||
Signals | ||
Time when process started | ||
Central Processing Unit time used | ||
Central Processing Unit time of Children | ||
Time of next alarm |
线程信息:
Per Process Items | Per Thread Items |
---|---|
Address space | Program counter |
Global variables | Registers |
Open files | Stack |
Child processes | State |
Pending alarms | |
Signals and signal handlers | |
Accounting information |
线程共用进程的地址控制、全局变量、打开的文件资源等,但是线程存在独立的程序计数器、栈空间、寄存器、状态信息等。