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 usleep(1); // for strange behavior on single-processor sun
20 pthread_join(tid
[0], 0);
21 pthread_join(tid
[1], 0);
22 if(ac
> 1000){return *av
[0];}
26 void* runner(void* args
)
29 for ( cc
= 0; cc
< 10; cc
++ )
31 printf("%d CC: %d\n", (int)args
, cc
);