LinuxでCPUを待機しているスレッドの数をプログラムで取得する方法はありますか?
psのマニュアルページから、ステータスフィールドにスレッドが実行キューにあるかどうかが示されます(スレッドを表示するには「L」オプションを使用します)-
D uninterruptible sleep (usually IO)
R running or runnable (on run queue)
S interruptible sleep (waiting for an event to complete)
T stopped by job control signal
t stopped by debugger during the tracing
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
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加