Tag Archives: exception-handling

The right way to implement producer consumer pattern in Java

The producer consumer pattern can be “easily” implemented in Java using one of the BlockingQueue classes. The producer puts work into the queue and consumer takes work from the queue. We start two separate threads for the producer and consumer. … Continue reading

Posted in Computers, programming, Software | Tagged , , , | Leave a comment