A solution to the producer consumer problem, implemented in the Java programming language.