int main() { Student student = {"tach",22}; pthread_t thread; //启动创建并启动线程 pthread_create(&thread,NULL,threadFunction,&student); //等待线程结束 pthread_join(thread,NULL); return 0; }