Friday 29 July 2016

Process _ ID

http://www.tutorialspoint.com/compile_c_online.php

#include <unistd.h>
#include <stdio.h>

int main(void)
{
   printf("My process ID : %d\n", getpid());
   printf("My parent's ID: %d\n", getppid());

   return 0;
}

No comments:

Post a Comment