}
}
}
int main() {
pthread_t f_thread,m_thread,son_thread,dau_thread;
sem_init...(&plate, 0, 1);
sem_init(&appleReady, 0, 0);
sem_init(&orangeReady, 0, 0);
pthread_create...}
}
}
int main() {
pthread_t f_thread,m_thread,son_thread,dau_thread;
sem_init...(&plate, 0, 1);
sem_init(&appleReady, 0, 0);
sem_init(&orangeReady, 0, 0);
pthread_create