void* start_routine(void* arg); 初始化pthread_t类型的变量以存储线程ID: 我们需要声明一个pthread_t类型的变量来存储新创建的线程的ID。 c pthread_t thread_id; 调用pthread_create函数创建线程: 使用pthread_create函数来创建线程,并传入线程ID变量、线程属性(通常设为NULL)、线程函数start_routine和传递...