[an error occurred while processing this directive]
$ProcessID gives the ID assigned to the Mathematica kernel process by the operating system under which it is run.
On operating systems where no process ID is assigned, $ProcessID is None.
See the Mathematica book: Section 2.13.5.
See also: $ParentProcessID, $UserName, Environment, $SessionID.