Ps හි STAT තීරු අගයන් අදහස් කරන්නේ කුමක්ද?


184

Ps හි STAT තීරුවේ ඇත්ත වශයෙන්ම එතරම් තේරුමක් නැති අකුරු රාශියක් ඇත. ඔවුන් අදහස් කරන්නේ කුමක්ද?

මෙන්න උදාහරණයක් ps aux | head:

USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.0  27176  2960 ?        Ss   Sep20   0:02 /sbin/init
root         2  0.0  0.0      0     0 ?        S    Sep20   0:00 [kthreadd]
root         3  0.0  0.0      0     0 ?        S    Sep20  13:05 [ksoftirqd/0]
root         5  0.0  0.0      0     0 ?        S<   Sep20   0:00 [kworker/0:0H]
root         7  0.0  0.0      0     0 ?        S<   Sep20   0:00 [kworker/u:0H]
root         8  0.0  0.0      0     0 ?        S    Sep20   2:16 [migration/0]
root         9  0.0  0.0      0     0 ?        S    Sep20   0:00 [rcu_bh]
root        10  0.0  0.0      0     0 ?        S    Sep20  20:08 [rcu_sched]
root        11  0.0  0.0      0     0 ?        S    Sep20   0:07 [watchdog/0]
root        12  0.0  0.0      0     0 ?        S    Sep20   0:05 [watchdog/1]
root        13  0.0  0.0      0     0 ?        S    Sep20   2:21 [ksoftirqd/1]
root        14  0.0  0.0      0     0 ?        S    Sep20   1:00 [migration/1]

Answers:


299

man ps “PROCESS STATE CODES” ශීර්ෂය යටතේ සියලුම පිළිතුරු ඇත:

PROCESS STATE CODES
       Here are the different values that the s, stat and state output specifiers (header "STAT" or "S") will display to describe the state of a process:
       D    uninterruptible sleep (usually IO)
       R    running or runnable (on run queue)
       S    interruptible sleep (waiting for an event to complete)
       T    stopped, either by a job control signal or because it is being traced.
       W    paging (not valid since the 2.6.xx kernel)
       X    dead (should never be seen)
       Z    defunct ("zombie") process, terminated but not reaped by its parent.

       For BSD formats and when the stat keyword is used, additional characters may be displayed:
       <    high-priority (not nice to other users)
       N    low-priority (nice to other users)
       L    has pages locked into memory (for real-time and custom IO)
       s    is a session leader
       l    is multi-threaded (using CLONE_THREAD, like NPTL pthreads do)
       +    is in the foreground process group.

23
මම මෙම පිළිතුරට බොහෝ විට යොමු කිරීමක් ලෙස පැමිණියෙමි
තණකොළ

1
සිත්ගන්නා කරුණ නම් මට "යූ" රාජ්‍ය කේතයක් ලෙස ලැබෙන අතර එය කොතැනකවත් ලේඛනගත වී නැති බව පෙනේ. යම් අදහසක් එයින් අදහස් කරන්නේ කුමක්ද?
ටොම්

3
සැසි නායකයා?
මාකෝ මාර්සාලා

6
Ar මාකෝමාර්සාලා ක්‍රියාවලියේ සැසි හැඳුනුම්පත එහි ක්‍රියාවලි හැඳුනුම්පතට සමාන වේ. එය සාරභූතව අදහස් කරන්නේ සැසියේ පළමු ක්‍රියාවලිය එය බවයි. එය සාමාන්‍යයෙන් bash හෝ X වැනි පිවිසුම් පර්යන්තයකි. සැසි වැනි කණ්ඩායම්කරණ ක්‍රියාවලීන් මඟින් නායක ක්‍රියාවලිය අවසන් වූ විට පහසුවෙන් පිරිසිදු කිරීමට ඉඩ ලබා දේ. එය දෙමව්පියන්ට සමානය.
ඔලි

2
@ ඔලි - 2017 දී නව එකක් එකතු කරන ලදි, I = උදාසීන - unix.stackexchange.com/questions/462098/… .
slm
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.