#include <iostream> #include <unistd.h> using namespace std; int main() { cout << "Calling system call getpid()" << endl; cout << "The process ID is: " << getpid() << endl; return 0; }
#include <iostream> #include <unistd.h> using namespace std; int main() { cout << "Calling system call getpid()" << endl; cout << "The process ID is: " << getpid() << endl; return 0; }