Pastebin
Paste #1121: No description
< previous paste - next paste>
Pasted by mmo
pthread_create(&thread1,NULL,canon,(void *)&canon1); pthread_create(&thread2,NULL,canon,(void *)&canon2); pthread_create(&thread3,NULL,canon,(void *)&canon3); pthread_create(&thread4,NULL,canon,(void *)&canon4); pthread_create(&thread5,NULL,canon,(void *)&canon5); //Waiting for the threads to finish pthread_join(thread1,NULL); pthread_join(thread2,NULL); pthread_join(thread3,NULL); pthread_join(thread4,NULL); pthread_join(thread5,NULL);
New Paste
Go to most recent paste.