C Source Codes
A blog for C programs, notes and articles about C, the programming language.
Search This Blog
Showing posts with label
getpid()
.
Show all posts
Showing posts with label
getpid()
.
Show all posts
C Program to Show Process ID in Linux
This program is to show the process id (pid) in UNIX or Linx
The system call getpid() returns the process id of current process.
#include<stdio.h>
int main()
{
printf("\n Parent Process ID %d",getppid());
}
Older Posts
Home
Subscribe to:
Posts (Atom)