HP 3000 Manuals

func pstate [ System Debug Reference Manual ] MPE/iX 5.0 Documentation


System Debug Reference Manual

func pstate 

Returns the process state for the specified PIN as a string.

Syntax 

      pstate (pin)

The following table lists all possible returned process state strings:

  UNBORN
  INITIATE
  ALIVE
  DYING
  DEAD
  UNKNOWN

Note that the process state string is always returned in capital letters.

Formal Declaration 

     pstate:str (pin:u16)

Parameters 

 pin             The process identification number (PIN) of the process
                 whose process state is to be returned.

Examples 

     $nmdebug > wl pstate(8) 
     INITIATE

     $nmdebug > wl pstate(f) 
     DYING

     $nmdebug > if pstate(16) = "ALIVE" then formatprocess(16) 

Limitations, Restrictions 

none



MPE/iX 5.0 Documentation