If I have a pool object with 2 processors for example:
p=multiprocessing.Pool(2)
and I want to iterate over a list of files on directory and use the map function
could someone explain what is the chunksize of this function:
p.map(func, iterable[, chunksize])
If I set the chunksize for example to 10 does that means every 10 files should be processed with one processor?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…