File:proc.h - ikarishinjieva/unixV6-code-analyze-chs GitHub Wiki
0378
0379 /* stat codes */
0380
- 以下是 进程状态 常量
- 参看进程状态
0381 /* null 0 not assigned */
0382 #define SSLEEP 1 /* sleeping on high priority */
0383 #define SWAIT 2 /* sleeping on low priority */
- 高优先级睡眠
0384 #define SRUN 3 /* running */
- 低优先级睡眠
0385 #define SIDL 4 /* process being created */
- 运行/就绪
0386 #define SZOMB 5 /* process being terminated */
- 进程创建态,参看newproc
0387 #define SSTOP 6 /* process being traced */
- 进程终结态,参看exit
0388
- 进程暂停态,参看跟踪
0389 /* flag codes */
0390
- 以下为进程标志
0391 #define SLOAD 01 /* in core */
0392 #define SSYS 02 /* scheduling process */
- 进程图像 在内存中
0393 #define SLOCK 04 /* process cannot be swapped */
- 系统进程,不参与进程调度
0394 #define SSWAP 010 /* process is being swapped out */
- 进程调度锁,该进程不参与进程调度
0395 #define STRC 020 /* process is being traced */
- 进程图像 在盘交换区,一般用于子进程创建,参看进程调度
0396 #define SWTED 040 /* another tracing flag */
- 进程跟踪标志,参看跟踪
0397
0398
0399