util.process-id

function

Library: Utilities (OMUTIL)
Import : omutil.xmd

Returns: A platform-specific number that identifies a process.


Declaration
export integer function 
   process-id


Purpose

util.process-id returns a platform-specific number that uniquely identifies the operating system process running the current application.

Example

The process ID of the OmniMark program can be gotten as follows:

  import "omutil.xmd" prefixed by util.
  
  process
     output "This OmniMark application has process ID: " || util.process-id || "%n"
The output of this program will likely change from one run to the next.