#include <iostream> #include <unistd.h> using namespace std; int main() { pid_t pid{getpid()}; cout << " My process id is " << pid << endl; return 0; }