
ps

     Display process status information. The first line shows the time
the system has been running, the active stack segment, the interrupt stack
usage, and the Jnos psp segment.  Note that the DOS Jnos code is loaded at
segment address psp+0x10.  Next, ps displays all processes in the system.

The fields are as follows:

     PID - Process ID (the segment of the process descriptor).

     SP - The current value of this process' stack pointer.

     maxstk - The size of the stack allocated to this process.

     stksize - The apparent peak stack utilization of this process.
     This is done in a  somewhat  heuristic  fashion, so the numbers
     should be treated as approximate. If this number is close to the
     maxstk figure, the system is likely to crash.  Please notify the
     author if you find such a situation.  (The program should be
     recompiled to give the process a larger allocation when it is
     started.)

     event - The event this process is waiting for, if it is not
     runnable.  This is actually a pointer value.

     fl - Process status flags. There are three: I (Interrupts
     enabled), W  (Waiting  for event) and S (suspended). The I flag
     is set whenever a task has executed a pwait() call (wait for
     event) without first disabling hardware interrupts.  Only tasks
     that wait for hardware interrupt events will turn off this flag;
     this is done to avoid critical sections and missed  interrupts.
     The  W flag  indicates  that  the  process is waiting for an
     event; the 'event' column will be non-blank. Note that although
     there may be several runnable processes at  any  time  (shown  in
     the 'ps' listing as those without the W flag and with blank event
     fields) only one process is actually running at any  one  instant
     (The  Refrigerator  Light  Effect  says that the 'ps' command is
     always the one running when this display is generated.)



