figuring out where the hell to put thread_sleep inside producer and consumer