Python multiprocessing | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 7

Python multiprocessing

I wonder how python or os for that matter distributes task in multiprocessing.Pool(n).map(func, iterable). Does it divide all the tasks each one to each process in advance or processes start with a single task then get assigned new one when they are done with the current? And is there any priority or order followed in doing that? https://code.sololearn.com/cmaEN3hjgaXf/?ref=app

15th Mar 2019, 4:32 AM
Dan Rhamba
Dan Rhamba - avatar
0 Answers