r/madeinpython • u/jim1930 • Aug 30 '20
Second part for my Threading module! Stay till the end and watch the benefits of multi-threading where I attempt downloading hundreds of images from the internet with multi threads and a single thread
https://www.youtube.com/watch?v=2MGAVyLNx44&feature=share
19
Upvotes
2
2
2
4
u/CotoCoutan Aug 30 '20
Thank you for another great tutorial!
I had a question: does a thread automatically get killed & free up system resources after its job is over? Here's an example code:
So does the thread that has been spawned for
browseURLandQuit()automatically die & free up system resources in the above example? Or is some remnant left behind which won't get cleared until the Python file stops running? Thanks!I'm mainly worried about threads eating up the RAM on my system (when running a script 24/7) & would like to find out some way to monitor each thread individually.