16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ps<br />

the four byte value determined when a bit is set to one for each<br />

corresponding state that is active. Below is the state-to-state bit mapping for<br />

the currently defined state values:<br />

Byte 0 1 2 3<br />

Bits 11111111 11111111 11111111 11010000<br />

-------- -------- -------- --------<br />

state ABCDEFG JK NO RS UVWX YZ 1<br />

For example, if a thread or process had a state field value of 1W, then the<br />

following bits would be set:<br />

Byte 0 1 2 3<br />

Bits 00000000 00000000 00000010 00010000<br />

-------- -------- -------- --------<br />

state<br />

Which when represented as a hexadecimal value would be 210.[F]<br />

state Displays the process state. [STATE] Various values can be printed in this<br />

field:<br />

1 A single task using assembler callable services.<br />

A Message queue receive wait.<br />

B Message queue send wait.<br />

C Communication system kernel wait.<br />

D Semaphore operation wait.<br />

E Quiesce frozen.<br />

F File system kernel wait.<br />

G MVS Pause wait.<br />

H One or more pthread created tasks (implies M as well).<br />

I Swapped out.<br />

J Pthread created.<br />

K Other kernel wait (for example, pause or sigsuspend).<br />

L Canceled, parent has performed wait, and still session or process<br />

group leader.<br />

M Multi-thread.<br />

N Medium weight thread.<br />

O Asynchronous thread.<br />

P Ptrace kernel wait.<br />

R Running (not kernel wait).<br />

S Sleeping.<br />

T Stopped.<br />

U Initial process thread.<br />

V Thread is detached.<br />

W Waiting for a child (wait or waitpid function is running).<br />

X Creating a new process (fork function is running).<br />

Y MVS wait.<br />

Z Canceled and parent has not performed wait (Z for zombie).<br />

THREAD THREAD [THREAD] is a synonym for specifying the following fields:<br />

-m -o ruser=UID -o pid,ppid,xstid,state=STATE -o atime,syscall,args=CMD<br />

The following is an example of how this output will appear:<br />

UID PID PPID STID STATE TIME SYSC CMD<br />

WELLIE8 67108867 15099496 - 1W 0:25 - sh -L<br />

- - - 00000002 W 0:17 1WAT -<br />

WELLIE8 1073741830 67108867 - 1Y 0:00 - ./ps -o THREAD<br />

- - - 00000000 Y 0:00 1GTH -<br />

522 z/<strong>OS</strong> <strong>V1R9.0</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong> <strong>Command</strong> Reference

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!