pthread_create(&thread1, NULL, thread_func, NULL); pthread_create(&thread2, NULL, thread_func, NULL);

return 0; }

int main() { pthread_t thread1, thread2;

#include <pthread.h> #include <stdio.h>

pthread_join(thread1, NULL); pthread_join(thread2, NULL);