def main(): executor = ProcessPoolExecutor(max_workers=3) task1 = executor.submit(task) task2 = executor.submit(task)