n child of same process.txt - #include<stdio.h> #include...

This preview shows page 1 out of 1 page.

#include<stdio.h>#include <iostream>#include <string>#include <sys/shm.h>#include <sys/ipc.h>#include <unistd.h>#include <sys/wait.h>using namespace std;int main(){int max = 5;pid_t pid;int papa = getpid();cout<<"Papa: "<<getpid()<<endl;for(int i=0;i<5;i++) // loop will run n times (n=5)
End of preview. Want to read the entire page?

Upload your study docs or become a

Course Hero member to access this document

Term
Spring
Professor
Amir Raheem
Tags
Papa, include, Peter Capaldi, Kelly Preston

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture