WOLFRAM SYSTEM MODELER

getPid

Retrieve the current process id

Wolfram Language

In[1]:=
SystemModel["Modelica.Utilities.System.getPid"]
Out[1]:=

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

Revisions

Date Description
June 22, 2015
DLR logo Initial version implemented by A. Klöckner, F. v.d. Linden, D. Zimmer, M. Otter.
DLR Institute of System Dynamics and Control