| getpid {fork} | R Documentation |
Obtain the process number for the current process.
getpid()
This function is a simple wrapper around the Unix "getpid" function call.
Integer process id.
Gregory R. Warnes greg@random-technologies-llc.com
Unix "getpid" man page
fork, exit, wait,
kill, killall
getpid()
## Not run:
for(i in 1:10)
fork( function() { cat("PID:", getpid(), "\n"); exit()} )
## End(Not run)