- getpid()
- getmypid()
1 Bash[ | ]

Bash
Copy
echo $$
# 4917
2 Node.js[ | ]

JavaScript
Copy
console.log( process.pid );
// 5023
3 PHP[ | ]

PHP
Copy
echo getmypid();
// 4886
4 Python[ | ]

Python
Copy
import os
print( os.getpid() )
# 4934
5 Ruby[ | ]

Ruby
Copy
puts Process.pid
# 5003