#include<pthread.h> #include<stdio.h> void identify() { pid_t pid = getpid(); printf("My pid is %d\n", pid); return NULL; } void main() { pthread_t thread; pthread_create(&thread, NULL, (void *) &identify, NULL); identify(); }