单选题

有如下 C 语言程序

【正确答案】 A
【答案解析】

pthread_create(&tid , NULL , th_f , NULL) 创建线程后,运行该线程。 th_f 线程中调用了 pthread_exit(0) ,线程 th_f 运行后主动退出。故本题答案选择 A 选项。