Method getpid() Method getpid int getpid() Description Returns the process ID of this process. See also System.getppid(), System.getpgrp()