GETPID(2)
NAME
getpid − return the process id of the currently running process
SYNOPSIS
int getpid()
DESCRIPTION
Getpid returns the process id of the currently executing process. It is necessary to be able to identify one’s self in order to perform some operations (e.g., change one’s scheduling priority).
December 01, 1986 — Xinu Programmer’s Manual