File:proc.h - ikarishinjieva/unixV6-code-analyze-chs GitHub Wiki

Source

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 */
  • 进程终结态,参看exit
0387 #define SSTOP      6 /* process being traced */
  • 进程暂停态,参看跟踪
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

Ref

⚠️ **GitHub.com Fallback** ⚠️