ti->thread_id = thread_id;
ti->start_routine = start_routine;
ti->arg = arg;
return pthread_create(thread, NULL, worker, ti);
}
ti->thread_id = thread_id;
ti->start_routine = start_routine;
ti->arg = arg;
return pthread_create(thread, NULL, worker, ti);
}