Use ThreadPoolExecutor.