Commit bf5ed682 authored by litaolemo's avatar litaolemo

update

parent 603cf85d
......@@ -501,12 +501,12 @@ def task_main():
if __name__ == "__main__":
from concurrent.futures import ProcessPoolExecutor
executor = ProcessPoolExecutor(max_workers=5)
futures = []
for processe in range(4):
future = executor.submit(task_main)
futures.append(future)
print('Processe %s start' % processe)
executor.shutdown(True)
# task_main()
# from concurrent.futures import ProcessPoolExecutor
# executor = ProcessPoolExecutor(max_workers=5)
# futures = []
# for processe in range(4):
# future = executor.submit(task_main)
# futures.append(future)
# print('Processe %s start' % processe)
# executor.shutdown(True)
task_main()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment