FeelingS

Me In Shimla

Advertisements

2 thoughts on “Me In Shimla

  1. #include
    #include
    #include
    #include
    #include
    #include
    void main()
    {
    int pid;
    int childID, parntID;
    pid = fork();
    if (pid == -1)
    {
    printf(“/* error */”);
    }
    else if (pid != 0)
    {
    printf(“/* parent code */\n”);
    }
    else
    {
    printf(“/* child code */\n”);
    childID= getpid();
    parntID=getppid();
    }
    printf(“Child %d \n ,Parent %d \n”,childID, parntID);
    }

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s