Inter process communication problem (producer consumer)