Jim

seems its works?

No preview for this file type
#include <stdio.h>
#include <pthread.h>
void* worker1(void* arg){
void* worker1(void* tname){
while(1){
... ... @@ -11,11 +11,11 @@ void* worker1(void* arg){
}
}
void* worker2(void* arg){
void* worker2(void* tname){
while(1){
write(1, "22222222\n", 9);
write(2, "22222222\n", 9);
sleep(3);
}
}
... ...