Thread pool fully implemented