Multithreaded application to solve multiple consumer, singular producer problem. Interwoven threads