#include #include #include #include void *thread_function1(void * arg) { int i; for ( i=0; i<3; i++ ) { printf("exc f1 \n"); sleep(1); } return NULL; } int main(void) { pthread_t thread1; pthread_create( & thread1,NULL , thread_function1,NULL); for( int j=0;j< 5;j++){ printf("main th %d \n",j); sleep(1); } exit(0); }