Hello World
What does C print in the following code?
void* identify(void* arg) {
pid_t pid = getpid();
printf("My pid is %d\n", pid);
return NULL;
}
int main() {
pthread_t thread;
pthread_create(&thread, NULL, identify, NULL);
identify(NULL);
return 0;
}