Java multithread producer-consumer
Java multithread producer-consumer v2