pthread_mutex_tmutex_consume;//维护消费者队列 pthread_cond_tcond; void*product(void*)//生产者 { intcount=0; while(1) { pthread_mutex_lock(&mutex_product); vec.emplace_back(count++); cout<<"生产者进程号:"<<pthread_self()<<endl; cout<<"生产者产出: "<<count<<endl; pthread_cond_s...