threading vs multiprocessing in python

Published: 09 August 2021
on channel: Dave's Space
664,967
18k

A comparative look between threading and multiprocessing in python.

I will show activity plots of 4,8,16 threads vs 4,8,16 processes and discuss the differences between the two modules.

In summary: threads in python are concurrent and not parallel, so no two threads can execute at the same time. The way to get around this isto use the core module multiprocessing and spawn child python processes to each run work in parallel.


On this page of the site you can watch the video online threading vs multiprocessing in python with a duration of hours minute second in good quality, which was uploaded by the user Dave's Space 09 August 2021, share the link with friends and acquaintances, this video has already been watched 664,967 times on youtube and it was liked by 18 thousand viewers. Enjoy your viewing!