#include #include void thread1(int *arg) { printf("Sono il primo thread. Parametro = %d \n", *arg);} void thread2(int *arg) { printf("Sono il secondo thread. Parametro = %d \n", *arg); } main() { pthread_t th1, th2; int i1 = 10, i2=20, n1, n2; n1=pthread_create(&th1, NULL, (void *)thread1, (void *)&i1); n2=pthread_create(&th2, NULL, (void *)thread2, (void *)&i2); printf("create ritornano %d %d\n",n1,n2); }