Fortran Library Reference

getpid: Get Process ID

The function is called by:

INTEGER*4 getpid

pid = getpid()

Return value 

INTEGER*4

Output 

Process ID of the current process  

Example: getpid:


    INTEGER*4 getpid, pid
    pid = getpid()
    write(*,*) 'process id = ', pid
    end

See also getpid(2).