child_thread
err = pthread_create(&child->thread, NULL, child_thread, child);
res = pthread_create(&th, &attr, child_thread,