threads.c
changeset 27 81a574d60c15
parent 9 c3fecc82ade6
child 77 49e0babccb23
equal deleted inserted replaced
26:d227047a3e88 27:81a574d60c15
    28 }
    28 }
    29 
    29 
    30 int main (int argc, char **argv)
    30 int main (int argc, char **argv)
    31 {
    31 {
    32     int i;
    32     int i;
       
    33 
    33     pthread_t thread;
    34     pthread_t thread;
    34 
    35 
    35     pthread_create (&thread, NULL, &thread_func, NULL);
    36     pthread_create (&thread, NULL, &thread_func, NULL);
    36 
    37 
    37     for (i = 0; i < 20; ++i) {
    38     for (i = 0; i < 20; ++i) {