pthread_t thrReceive = 0;意思是不是定义一个进程号,值为0
其实应该是这样的: int pthread_create(pthread_t *thread, const pthread_attr_t *attr, void *(*start_routine) (void *), void *arg); 你的thrReceive 只是获取线程id的变量,最后线程创建成功,他就是你创建的线程对应的线程id