getPid

Retrieve the current process id

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

Syntax

pid = System.getPid();

Description

Returns the pid (process identification) of the process in which this function is called. This is an impure function and the returned value depends on the operating system.

Example

getPid()   // = 3044

Note

This function is impure!

Syntax

pid = getPid()

Outputs (1)

pid

Type: Integer

Description: Process ID