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!
@youssefelbiyadi42855 жыл бұрын
Hi corey Thank you very much for this topic it's quite interesting, your videos are very helpful. I have a view function in my django project that performs some complicated calculations, so it is CPU Bound. The problem is that when I run these calculations for a high number of objects (each object is an eNodeB site), it takes a while before loading the view page. I tried to use threading but it was not useful. So I wanna use multiprocessing but I have a problem with the __name__=="__main__" condition. I can't use it in Django framework... Do you have any other suggestions for me please that will be very helpful ? Thank you again for all your efforts :)
@coreyms5 жыл бұрын
@@youssefelbiyadi4285 Hey there. When it comes to running asynchronous tasks on web applications, it might be a good idea to use a messaging task queue (e..g Celery). Anthony over at the PrettyPrinted channel released a video just the other day on how to do this. I think he did a great job. Check that out here: kzbin.info/www/bejne/mF6Znnh3p5agY6M
@youssefelbiyadi42855 жыл бұрын
@@coreyms Tkanks a lot that was very helpful
@gingerboy91705 жыл бұрын
Waiting for the next "IMG processing" vid sensei....🔥🔥🔥
@marcelodimb5 жыл бұрын
Hi @Corey Schafer, please, can you make a tutorial explaining how we create a python web application (Django or Flask) using Docker? I love your videos. Best regards from Brazil!
@HexagonalClosePacked5 жыл бұрын
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 :)
@dnetne55084 жыл бұрын
Damn - that is amazing!
@ksun89934 жыл бұрын
@HexagonalClosePacked So basically you have your rank /Z effective as 6 with 2 corner atoms,3 body and 2 face atoms . And Zn and Mg adopt your structure. (To understand , read your username)
@kwertie1334 жыл бұрын
@@ksun8993 iit?
@K3vyB3 жыл бұрын
@@kwertie133 I unleashed a vile shit just now bro
@muralidhar402 жыл бұрын
Same here!
@nicholastalbot63704 жыл бұрын
Corey: I know that sounds confusing. Me: No, you explained that very well.
@edwingarcia50433 жыл бұрын
Unfortunately some things sound confusing, I mean, it heavy depends on my current knowledge, the good thing about Corey is the calm way of explaining.
@edwingarcia50433 жыл бұрын
@Slime Boi wadafa :0
@dipankarkaushik52855 жыл бұрын
Was waiting for this topic to learn from the world's best Python Mentor. Now the wait is over. God bless you.
@saraljoshi15 жыл бұрын
“hear hear"..exactly my sentiment. After trying concurrency in python on my own several times and failing. I knew only Corey's Videos will help.
@kebman4 жыл бұрын
If you threaded the timer the wait would be much shorter....................
@PyjamasBeforeChrist3 жыл бұрын
time.sleep(0)
@kirubababu71273 жыл бұрын
Hi Bro, If I am trying to read CSV files by pandas,time duration is not reducing. Could suggest your ideas?
@CodeWithGBMags3 жыл бұрын
I agree, this was really helpful @Corey, you are my favorite Python mentor and so is your channel
@CwMuller5 жыл бұрын
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!
@coreyms5 жыл бұрын
That's awesome! Good work!
@ismersh5 жыл бұрын
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 KZbin, because you won't find such good materials even in paid courses on Udemy or other sites.
@coreyms5 жыл бұрын
Thanks!
@pacoa-kdbg93032 жыл бұрын
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
@paulh46545 жыл бұрын
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.
@AnselJanson-v5v Жыл бұрын
still valid even after 3 yrs Awesome tutorial
@dangidelta4 жыл бұрын
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
@harrisongropper1993 жыл бұрын
I agree
@vishnusingh41185 жыл бұрын
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 !
@adobongasin2143 жыл бұрын
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
@excitedbox57054 жыл бұрын
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.
@gytisbl2 жыл бұрын
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
@o1techacademy2 жыл бұрын
Thank you for this powerful tutorial.
@gurudevilangovan4 жыл бұрын
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.
@anantchopra16632 жыл бұрын
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!
@andrewhofmann54533 жыл бұрын
So I just extended the Thread class into my own class and made something so much more efficient because of this video. Great job!
@newpain012 жыл бұрын
Completely agree about the basic example tutorials, I often find them useless. Great video, thanks!
@ZbigniewLoboda3 ай бұрын
❤ At last, I have found an instructor-you-who truly understands and knows what they are talking about in the subject of Python programming.
@orkhanahmadov99633 жыл бұрын
This man deserves a golden globe award... I have been watching his videos for the last 3 years. He helped me to master Python.. I would definitely like to recommend this channel to anyone who wants to learn CS.
@DarshitParmar4 жыл бұрын
You are an angel. Most youtubers teach textbook. Thank you so much for this tutorial!
@EdiFerreiranet5 жыл бұрын
10:54 Throw away variable!?! Nice!!! I didn't knew that. Awesome!!! Thank you. You're the best ;)
@bratergames94102 жыл бұрын
For five years I was looking for some simple explanation that I could use in my code, to pull my dna, from snpedia...OMG. So simple but very good. Thanks man.
@juliocefe18073 ай бұрын
OMG, one of the best programming channels on KZbin
@okyigwegbe19774 жыл бұрын
Corey, you are unbelievably good. My python journey has been solid because of your brilliant and simplistic way of explaining the most complex of things. Thank you very much and God bless you.
@victorialeigh27263 жыл бұрын
I click it all excited to master threading in 30 minutes. In the first 10 seconds, I realise it's an intensive lecture so I need to take notes. After 2 hours I have 10 minutes left lol (but I know this will go a long way) Edit: after 3 hours I completed the tutorial. Now I'm gonna go improve my code.... thank you Corey!
@truongtran99_8 ай бұрын
Your explanation about threading was so clear and easy to understand. Thank you for making this video!
@hotcrossbun26 Жыл бұрын
I'd be so screwed without your videos. The BEST explanations anywhere on the internet for learning python.
@georgesd94 жыл бұрын
Thank you Corey, channels like yours is what makes youtube worth visiting IMHO. One thing I needed to add, I tried to use threading on a sending email method in flask to avoid delay in redirecting, I found out that it can't be used out of the box, due to flask app-context, with some research I managed to make it work, by researching more about flask contexts I ended up using flask-script with Manager and Shell classes, using the shell to create a context for the thread. I'm writing this in case someone is trying to do the same.
@terryhenyo92165 жыл бұрын
When I see a Corey Schafer video I automatically like before watching, because I know it's going to be good :)
@derrick79685 жыл бұрын
Me too, i commented without watching
@fergusonsofstirling81304 жыл бұрын
Thank you very much Corey. I couldn't get my head around threading before watching your video. After adapting my code with concurrent.futures.ThreadPoolExecutor() / executor.map I managed to speed up a program that makes API calls - which is now at least 100 times faster!
The reason I've learned so much from your videos is real world application. I hit a wall with all the tutorials online until I found this channel. Thank you Corey
@alttablife69652 жыл бұрын
Easy choice to subscribe. These are helping me learn more in a few days than combing through docs did in a week. For reference, I'm coming primarily from a bash background. Last time I looked at multiprocessing was in a college java class. This just refreshed almost everything I need for my current project.
@chazyua5 жыл бұрын
OMG. This is not the first time you read my mind. Literally just wanted to find some threading topics ! Wow ! Thanks
@PatooOfficial4 жыл бұрын
At first I thought this was some video from annoying courses companies that's just a waste of time and boring.. until the video started I got happy and knew this video is quality from a quality channel
@TheFred100005 жыл бұрын
This channel is criminally underrated.
@luffingsails75422 жыл бұрын
Tried Skillshare to take on learning Python. There is a bunch of milquetoast videos with no real substance. These videos by Corey are outstanding. Much appreciation. I'm glad it was a free subscription.
@Sharmapawan985 жыл бұрын
Can we have this man rewrite the official docs of python ? Love from India♥
@BoukariYameogo5 жыл бұрын
Corey is really a great teacher
@massiveblackwood5 жыл бұрын
indeed, idk why they refer a link to the same page and hyperlink it on every word on those page now i'm suffering vertago bcs of that thanks for words!
@BoukariYameogo5 жыл бұрын
How come some people could dislike your videos? I really don't understand it. You're doing a great job for real. Thank you for your videos
@cetilly3 жыл бұрын
Easily the best presentation on multi-threading and ThreadPoolExecutor that I've seen. Really great job.
@dano21695 жыл бұрын
Literally so many videos out there on threading and multiprocessing but by far this is the best. Thanks Corey!
@sanviews98194 жыл бұрын
One of the best Educator on programming out there ... love from India.
@chawza84022 жыл бұрын
Thank you very much! best python guide in all KZbin Although I only watch until 15:23, I have learned alot
@mengzhu83853 жыл бұрын
Most clear video on explaining multi-threading in Python!
@mohit4u0074 жыл бұрын
Your threading and multiprocessing videos helped me a lot to solve my problem at work. Thanks a millions. Awesome effort and great wishes to you. Keep going!!!
@MyYouthUk3 жыл бұрын
I'm currently only half way through... but this is far more comprehensive than anything else I've found. Easy to understand and detailed at the same time.
@LiquidArremer5 жыл бұрын
I think the best part of these tutorials are the ones were you involve real world examples to show the utility, especially common cases and how it alters from then to now. Keep up the good work Corey!
@wassimracing3 жыл бұрын
You sir, are a HERO. I don't usually hit the red button, but you deserve it! Thanks!
@touchpad243 жыл бұрын
Your explanation is so simple yet at the same time covers everything. Thanks so much!
@JohnJohnson-db4vv3 жыл бұрын
Honestly, been wanting to figure out threading for the better part of a year now and every tutorial I've followed thus far has been confusing and doesn't explain a lot of important details. Thanks to this video I finally have been able to figure out threading!
@gastonscazzuso41133 жыл бұрын
Corey , this is the best explained Threading topic video in KZbin !.. Awesome.. and many Thanks !
@jaylocker20554 жыл бұрын
LOL, just cut a loop that makes 12,000+ API calls from 42 minutes to < 5 minutes. This is freakin awesome!
@diegomedflo4 жыл бұрын
How do you avoid being banned? proxies?
@jaylocker20554 жыл бұрын
@@diegomedflo I'm hitting an internal service our company uses. Wish I could do batch requests, but the info I needed had to be a per record request as noted in the services documentation.
@moeinmhzg78273 жыл бұрын
I don't remember if I saw any better python tutorials. You are the best.
@jaehochoi80622 жыл бұрын
Clear, easy, pinpoint, reliable plus truly helpful explanation ever!
@mehdibouss45515 жыл бұрын
happy hear from u again,.The Mathplot videos were awesome.i saw also all the other videos.Keep going ,U got the juice of python man ! wating for more about data science...
@jerry56465 жыл бұрын
Hands down. Best python tutorial in youtube
@borja40154 жыл бұрын
These videos were really well explained. I had been curious for a time about multithreading VS multiprocessing and I feel like I learned a lot from your videos
@athisii_ekhe61674 жыл бұрын
Your videos doesn't want me to stop. I'm addicted to it. Cos its the best. Thank you. MGBY.
@davidnago79474 жыл бұрын
@Corey you need an award for the top quality content . keep it up
@fredpaik13495 жыл бұрын
Thank you Corey for ALL your videos! You are an inspiration and a great teacher. Keep up the good work!
@tuvshinotgo59114 жыл бұрын
Stop Corey, you are killing it. Kidding no stop
@Nickelkitten7511 ай бұрын
Very clear and concise explanation Kudos Corey
@vishnusingh41185 жыл бұрын
35:03 Yes yes yes ! Please make the vids on the advance topics as well! That will complete the knowledge-pack and make this video even more fruitful as we'll be able to apply the knowledge end-to-end in a real world setting. Thanks a ton Corey.
@derrick79685 жыл бұрын
Corey your the best, love your simplicity and cool examples. I use python for QA automation . Much appreciation from this side of the globe - Kenya.
@shinobi94614 жыл бұрын
Your tutorials are truly phenomenal. Thank you so much for sharing these videos with everyone, they’re incredible!
@SlaineCZE5 жыл бұрын
Brilliant explanation (as always). Thank you, Corey. It would be great if you did the more advanced threading/multiprocessing (GIL etc.) video that you suggested.
@soumyazyx4 жыл бұрын
More I see these videos, more do I fall in love with python and Corey. Thank you for your time and effort.Keep spreading the knowledge.
@azemashaik4301 Жыл бұрын
Thank you so much, Corey, for this fantastic tutorial on introducing threading in Python to beginners! Your clear explanations and step-by-step demonstrations have really helped me grasp this concept much better. Your tutorials are always a go-to resource for me, and I appreciate how you make even complex topics so accessible. Your contribution to the Python community is invaluable, catering to both newcomers like me and experienced developers. Keep up the fantastic work, Corey!
@dataenergy9 ай бұрын
clear, concise and with provided example... excellent!!
@somaloco37015 жыл бұрын
omgggg I wanted to learn this but didn't because it seemed too advanced. thank you corey, there is no better source to learn from than you, I can learn anything that you teach!
@yuliiakhalus73394 жыл бұрын
Thank you very much for this tutorial! No one can explain all this Python stuff better that you!
@arunprakasam.s3 жыл бұрын
Great tutorial on Threading. Thanks, Corey, Explanation is at the perfect pace, not needed to increase or decrease the playback speed.
@spoonmanchen76315 жыл бұрын
You never let me down, My Instructor. Always looking forward to your next video.
@smithatubeme5 жыл бұрын
Thanks Corey! Can you please also do a tutorial on dockers?
@letslearnabout49345 жыл бұрын
Brilliant video as always, Corey. I love that it is not just theory or theory with a few "FooBar" examples, but real world applications.
@stephenrwafa25194 жыл бұрын
Awesome, simply awesome and had to watch ads all the way to the end in appreciation this level of quality. Thanks
@karansmittal3 жыл бұрын
It was a very demanded video, Thanks for working on it. Always creating high quality video content.
@pahehepaa41824 жыл бұрын
Hands down, best instructor.
@ahmedabdulrahman85675 жыл бұрын
your fan from Sudan ... thanks for making such unique content
@isaacfink1235 жыл бұрын
I have watched almost all of your python videos, and I've been waiting for something like that for a very long time, Thanks corey
@mostafanakhaei49164 жыл бұрын
Corey Your ability to teach is amazing.
@Mainhunpyarkamusafir2 жыл бұрын
No one can explain better than you
@ravikumaroruganti20974 жыл бұрын
Explained multi threading concept with perfect example.Thanks Corey!
@leondaz5 жыл бұрын
I watched the AD till the end and clicked on it, Thanks man
@uguree4 жыл бұрын
Thanks a lot, what a brilliant video. Your english, real examples (sick and tired of hello worlds!) everything perfet. I will subscribe the Brilliant.org after watching this.
@26_dharmeshmarathe862 жыл бұрын
You're great. Your video on multithreading helped me to undertand the differncce between multithread & multiprocess. Great explaination!!❤❤
@alexchung4854 жыл бұрын
You have saved my project! I was looking for the return of a thread process everywhere! Thank you!
@nickvledder3 жыл бұрын
Covey, you must be God-sent. Thanks for this thorough explanation!
@dinohunter71764 жыл бұрын
The examples are so well done and nice explained. Good stuff.
@bendibhafed16872 жыл бұрын
Very clear and amazing course, thank you sir
@johnnymysto3 жыл бұрын
Great explanation!! I knew basically nothing about this before I watched it, and it makes complete sense now.
@elgary90742 жыл бұрын
Long videos yes, but what a great explanation totally worth the time. Thanks a lot.
@patloeber5 жыл бұрын
Great Tutorial!
@sunilthapa67024 жыл бұрын
Awesome Video!...Finally understood Threading in Python...Thanks for the video!
@luanangtranhuu19193 жыл бұрын
this is better than any lecture I have had at my university. 😊 thanksss
@pranayb41155 жыл бұрын
Clear & concise explanation on I/O vs CPU bound tasks. Looking forward for a video series on "asyncio" library.
@ReCremisi893 жыл бұрын
Amazing video as always. I started knowing basically nothing about the topic. Now I have a strategy to replace my for loops with functions, and to make batches of function calls. An interesting idea for a future video would be on how to combine multi-threading with multi-processing: Your example on image processing represents an interesting real world scenario where you need to perform a task that is I/O bound in some parts and CPU bound in others.
@11rshan2 жыл бұрын
Viewed everything on the net. Nothing like this. Best video for threading