Linux C++ implements thread pool (avoiding time-consuming thread creation)