6 long my_global_variable
; // global variable
9 my_global_variable
= 42;
14 my_global_variable
= 43;
18 int main (int argc
, char const *argv
[])
21 pthread_create(&t1
, NULL
, f1
, NULL
);
24 pthread_create(&t2
, NULL
, f2
, NULL
);
26 pthread_join(t1
, NULL
);
27 pthread_join(t2
, NULL
);