8 void *nothing(void *p
) {
24 int main (int argc
, char const *argv
[])
26 pointer
= (char *)malloc(10);
28 for (int i
= 0; i
< 3; i
++) {
30 pthread_create(&t
, NULL
, nothing
, NULL
);
31 pthread_join(t
, NULL
);
35 pthread_create(&t1
, NULL
, f1
, NULL
);
37 for (int i
= 0; i
< 3; i
++) {
39 pthread_create(&t
, NULL
, nothing
, NULL
);
40 pthread_join(t
, NULL
);
44 pthread_create(&t2
, NULL
, f2
, NULL
);
46 pthread_join(t1
, NULL
);
47 pthread_join(t2
, NULL
);