Read one Linux /proc/<pid>/stat snapshot. The returned fields start at field 3 (state) after the final ) , because comm may contain spaces and parentheses. Undefined when the entry is absent, unreadable, or malformed.
/proc/<pid>/stat
state
)
comm
Read one Linux
/proc/<pid>/statsnapshot. The returned fields start at field 3 (state) after the final), becausecommmay contain spaces and parentheses. Undefined when the entry is absent, unreadable, or malformed.