pthread_homework