Код: Выделить всё
void call1(void *args){
pthread_mutex_lock(&mutex);
pthread_cond_wait(&cond,&mutex);
sleep(2);
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79360566/pthread-conditional-variable[/url]Код: Выделить всё
void call1(void *args){
pthread_mutex_lock(&mutex);
pthread_cond_wait(&cond,&mutex);
sleep(2);
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79360566/pthread-conditional-variable[/url]