normal mode
multithreaded version using C++11 futures and simple blocking queue with mutex