Contoh program: Producer-Consumer menggunakan Threads (4)
{"Image DocumentName": "Contoh program: Producer-Consumer menggunakan Threads (4)", "Image ImageDescription": "... int main() { int i,ret; ret = pthread_create(&(thrds[0]),NULL,(void  )producer,(void  )(&(thrd_ids[0]))); if (ret) perror( pthread_create: thrds[0]\\n ); exit(EXIT_FAILURE); } ret = pthread_create(&(thrds[1]),NULL,(void  )consumer,(void  )(&(thrd_ids[1]))); perror( pthread_create: thrds[1]\\n ); exit(EXIT_FAILURE); for (i=0; i<2;i++) pthread_join(thrds[i],NULL);", "Image XResolution": "37", "Image YResolution": "37", "Image ResolutionUnit": "Pixels/Centimeter", "Image Software": "SlidePlayer", "Image YCbCrPositioning": "Centered"}