Create producer consumer problem usin threads