Python Threading Tutorial: Run Code Concurrently Using the Threading Module

preview_player
Показать описание
In this video, we will be learning how to use threads in Python.

The code from this video can be found at:

✅ Support My Channel Through Patreon:

✅ Become a Channel Member:

✅ One-Time Contribution Through PayPal:

✅ Cryptocurrency Donations:
Bitcoin Wallet - 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3
Ethereum Wallet - 0x151649418616068fB46C3598083817101d3bCD33
Litecoin Wallet - MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot

✅ Corey's Public Amazon Wishlist

✅ Equipment I Use and Books I Recommend:

▶️ You Can Find Me On:

#Python
Рекомендации по теме
Комментарии
Автор

Hey everybody! I hope you find this video helpful. I'll be releasing the multiprocessing video next week. I am currently packing up my temporary recording station and will be moving into my new place tomorrow, so I should be able to get it recorded, edited, and released next week for sure. We'll be covering how to use multiprocessing to process the high-resolution images we downloaded in this video. Hope you all get some good use out of these topics!

coreyms
Автор

When I first tried to switch my career to programming, I watched Corey's videos. Now, 3 years later, I already got a job in programming and still watch Corey's videos :)

HexagonalClosePacked
Автор

Corey: I know that sounds confusing.
Me: No, you explained that very well.

nicholastalbot
Автор

Was waiting for this topic to learn from the world's best Python Mentor. Now the wait is over. God bless you.

dipankarkaushik
Автор

Had a service at work that created html pages with indexes of hundreds of xml reports. It used to read each report one by one. Used what I learned here to refactor the code to process files concurrently, which cut the script run time to a fraction of what it used to run at. Thanks for the fantastic tutorial!

CwMuller
Автор

You are not only the master of this subject matter, but also you are a great communicator who can articulate artfully. I appreciate your time and effort to share your gift with all of us. Thank you so much.

paulh
Автор

The best video in the internet about multithreading. Clear and step by step detailed explanation about different ways to run multiple threads in your script + Corey explained why the threading is useful, while some websites tend to say multithreading doesn't work in python. We are very lucky that we have Corey explaining these concepts for free in Youtube, because you won't find such good materials even in paid courses on Udemy or other sites.

ismersh
Автор

For those who are starting in Python, Corey is the best in terms of explaining things, I am already a Team Lead but I still go back to his tutorials once in a while hahaha

adobongasin
Автор

Crystal-friggin'-clear! The coolest part was the real-world examples at the end which ensured there was a concrete takeaway and that it wasn't all just theoretical. The best threading vid on the internet! You keep getting better Corey. More power to you !

vishnusingh
Автор

Can we have this man rewrite the official docs of python ? Love from India♥

Sharmapawan
Автор

This has to be the best made guide ever. This should exist for every programing language. Usually guides only give you the absolute basics and expect you to figure out the more advanced stuff yourself and that is where most people get stuck. The level of detail in this is perfect without making it overly long.

excitedbox
Автор

Mind Blown : 100%
New Concept : Yes
Easy Implementation : Yes
More Control on Programs from now on : Yes
Feel like a New Level Achieved : Definitely Yes

dangidelta
Автор

Really liked the distinction at 4:27 that its best to use several threads when code is IO bound:
-reading/writing disk, waiting for network

gytisbl
Автор

Almost 2 years since you uploaded this, you reduced my exect time from ~90 mins to ~2 mins at max .
Awesome videos, will continue watching

pacoa-kdbg
Автор

10:54 Throw away variable!?! Nice!!! I didn't knew that. Awesome!!! Thank you. You're the best ;)

EdiFerreiranet
Автор

So I just extended the Thread class into my own class and made something so much more efficient because of this video. Great job!

andrewhofmann
Автор

This video is a life-saver! I have a project due in 3 days that needs me to do a lot of fancy stuff in a multithreaded program, and I had no clue what multithreaded programs are! I'm in a much better position after watching this video. Thank you, Corey!

anantchopra
Автор

You definitely do have a gift. It takes a ton of talent to explain concepts like this with so much lucidity. Whenever someone says they want to learn python, I point them right to your videos. Thanks Corey! I'm indebted to your videos.

gurudevilangovan
Автор

Completely agree about the basic example tutorials, I often find them useless. Great video, thanks!

newpain
Автор

You are an angel. Most youtubers teach textbook. Thank you so much for this tutorial!

DarshitParmar