Skip to content

Instantly share code, notes, and snippets.

@hrshadhin
Created April 23, 2013 16:46
Show Gist options
  • Select an option

  • Save hrshadhin/5445306 to your computer and use it in GitHub Desktop.

Select an option

Save hrshadhin/5445306 to your computer and use it in GitHub Desktop.
Process id printer
#include<stdio.h>
int main(){
int pid,ppid;
pid=getpid();
ppid=getppid();
printf("This program process id[PID]:=%d\nAnd Parent process id[PPID]=%d\n",pid,ppid);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment