Front end of the producer consumer problem