Create producer consumer problem using threads using blocking shared queue