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__) && !defined(__HAIKU__) // (no usleep on BeOS 5.)
20 usleep(1); // for strange behavior on single-processor sun
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("%d CC: %d\n", (int)args
, cc
);