| Версия для печати темы
Нажмите сюда для просмотра этой темы в оригинальном формате |
| Форум программистов > Центр помощи > [Java] Producer and consumer |
| Автор: nak 14.6.2010, 15:45 |
| Помогите выполнить задание: Create abstract producer and consumer classes (either generic or producing and consuming some specific type of object). Both classes will be used to create objects running in parallel threads. Both classes shall gracefully shut down after receiving an interrupt. On shutdown they shall print to standard output number of produced (or consumed) objects. Create concrete implementation of producer and consumer. The overall solution shall be based on a blocking queue, then wait() and notifyAll() or corresponding Condition methods In main() create and test multiple cooperating producers and consumers working in parallel threads |
| Автор: powerOn 15.6.2010, 06:58 |
| Для домашних заданий, курсовых, существует "Центр Помощи". Тема перенесена! |
| Автор: nak 21.6.2010, 19:29 |
| Неужели никто не может мне помочь? |