initialize queue before worker threads connects and start it in blocking mode.