Update Producer consumer problem