기본 콘텐츠로 건너뛰기

라벨이 stat인 게시물 표시

Linux /proc/pid/stat 구조

Linux 2.6 / 출처: http://linux.die.net/man/5/proc ㅡ_-) 중간에 쓰이지 않는 '0' 필드가 있으니 주의!!! pid %d     The process ID. comm %s     The filename of the executable, in parentheses. This is visible whether or not the executable is swapped out. state %c     One character from the string "RSDZTW" where R is running, S is sleeping in an interruptible wait, D is waiting in uninterruptible disk sleep, Z is zombie, T is traced or stopped (on a signal), and W is paging. ppid %d     The PID of the parent. pgrp %d     The process group ID of the process. session %d     The session ID of the process. tty_nr %d     The tty the process uses. tpgid %d     The process group ID of the process which currently owns the tty that the process is connected to. flags %lu     The kernel flags word of the process. For bit meanings, see the PF_* defines in <linux/sched.h>. Details depe...