threading vs multiprocessing in python

Dave's Space August 9, 2021
Video Thumbnail
Dave's Space Logo

Dave's Space

@davesspace

About

This channel is aimed at both people interested in science and those who are already in the field! It features: - Interesting simulation videos, showing how anyone can simulate ANYTHING as long as you have a computer and an equation! It will also feature: - Various tear downs and reviews of electornics and technology that you might find useful. - Interesting maths and science videos with a focus on real life usefulness. - simple explanations of confusing things!

Video Description

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.

You May Also Like