static threads pool with queue