| pthread_t pid1, pid2, pid3, pid4, pid5; | | t1= pthread_create(&pid[i], NULL, thread1, (void ) &input1); | | if(t1){ | | printf(“Error creating thread1%d!”, i); | | return -1; | | t2= pthread_create(&pid[i], NULL, thread2, (void ) &input2); | | if(t2){ | | printf(“Error creating thread2%d!”, i); | | return -1; | | t3= pthread_create(&pid[i], NULL, thread3, (void ) &input3); | | if(t3){ | | printf(“Error creating thread3%d!”, i); | | return -1; | | t4= pthread_create(&pid[i], NULL, thread4, (void ) &input4); | | if(t4){ | | printf(“Error creating thread4%d!”, i); | | return -1; | | t5= pthread_create(&pid[i], NULL, thread5, (void ) &input5); | | if(t5){ | | printf(“Error creating thread5%d!”, i); | | return -1; |
|