Home > OS >  Threads to create doubt many times
Threads to create doubt many times

Time:10-09


Pthread_t t;
for(i=0; I<5; + + I) {

Pthread_create (& amp; T, NULL, handler, NULL);

}

Like this, the for loop create a thread for many times, but the first parameter is the same, is it means or just create a thread? Do so for loop so what's the point? After helping to ask the threads created when to start? Such as the code for the first time to create good thread, and then will start to implement a handler? Then the second continue pthread_create () what is the effect??


Hope god can guide temper under one by one, please,
  • Related