HPlogo System Debug Reference Manual: HP 3000 MPE/iX Computer Systems > Chapter 8 System Debug Standard Functions

func pstate

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

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

Feedback to webmaster