PS(1)                                                       PS(1)

     NAME
          ps - process (thread) status

     SYNOPSIS
          bind '#p' /prog

          ps

     DESCRIPTION
          Ps prints to the standard output information about all cur-
          rent Inferno processes.  It looks in /prog for process sta-
          tus files; normally that requires that the prog(3) device
          has previously been bound there (as shown above), but it is
          also possible to import /prog from a remote machine.

          Each line of information printed consists of six columns:
          the process id, the process group id, the owner of the pro-
          cess, the run state of the process, the amount of memory
          used by the process, and the name of the module containing
          the currently running function.

     FILES
          /prog/*/status

     SOURCE
          /appl/cmd/ps.b

     SEE ALSO
          kill(1), stack(1), wm-deb(1), wm/task and wm/memory in wm-
          misc(1), prog(3)

     BUGS
          The amount reported as ``memory used'' does not accurately
          reflect the amount of memory referred to by the process,
          because the heap is shared.

     Page 1                       Plan 9             (printed 4/19/24)