Returns the pid of the parent process (on unix like systems) or 0 (on windows).

getPpid()