// using fork() #include #include using namespace std; int main() { int id = fork(); // create another process if(id == 0) // child-process { cout << "Child ps!\n"; exit(0); } cout << "Parent ps.\n"; sleep(12); return 0; }