Example for BlockingQueue with a producer and consumer.