n child n parents.txt - #include<stdio.h> #include...

This preview shows page 1 out of 1 page.

#include<stdio.h>#include <sys/shm.h>#include <sys/ipc.h>#include <iostream>#include <unistd.h>#include <sys/wait.h>using namespace std;int main(){pid_t pid = 0;int papa = getpid();for(int i=0;i<5;i++)if(pid == 0){cout<<"i ki value in child:"<<i<<endl;
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, t pid

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture