NUM_THR
pthread_t threads[NUM_THR];
for (i = 0; i < NUM_THR; i++)
pthread_t thread_id[NUM_THR];
for (i = 0; i < NUM_THR; i++) {