13 int main(
int ac,
char*av[]){
16 pthread_create(&tid[0], 0, runner, (
void*)1);
17 pthread_create(&tid[1], 0, runner, (
void*)2);
19 #if defined(__BEOS__) && !defined(__ZETA__) // (no usleep on BeOS 5.) 23 pthread_join(tid[0], 0);
24 pthread_join(tid[1], 0);
25 if(ac > 1000){
return *av[0];}
29 void* runner(
void* args)
32 for ( cc = 0; cc < 10; cc ++ )
34 printf(
"%p CC: %d\n", args, cc);