Why Processpoolexecutor Working Serially?
from concurrent.futures import ProcessPoolExecutor import os import time def parInnerLoop(item): print(f'Processing {os.getpid()} started on {item}') time.sleep(3) pri
Solution 1:
As mentioned by @Klaus, need to change from executor.submit(parInnerLoop(itemNo))
to executor.submit(parInnerLoop, itemNo)
.
Post a Comment for "Why Processpoolexecutor Working Serially?"