## `getpid` -- the process ID of the running MuPAD kernel

#### Introduction

On UNIX and Linux systems, `getpid(``)` returns the process ID of the running MuPAD kernel.

#### Call(s)

`getpid()`

#### Returns

a nonnegative integer.

#### Related Functions

`sysname`, `system`

#### Details

- On operating systems other than UNIX or Linux, `getpid` returns `0`.
- The process ID may be useful information to communicate with other processes or to send UNIX commands to the operating system via `system`.

- `getpid` is a function of the system kernel.

#### Example 1

Querying the process ID of the running kernel may produce a result like this:

    >> getpid()

                                       16184

#### Changes

- no changes

Do you have questions or comments?
Copyright © SciFace Software GmbH & Co. KG 2000