#include #include int *thr(void*i); int main(void){ int i = 0; pthread_t t0,t1; printf("echo me"); pthread_create(&t0,NULL,thr,&i); i++; pthread_create(&t1,NULL,thr,&i); for(;;); return; } int *thr(void *i){ for(;;){ printf("\t %d",*(int*)i); } }