Do you want to learn python from me with a lot of interactive quizzes, and exercises? Here is my project-based python learning course: codebasics.io/courses/python-for-beginner-and-intermediate-learners
This is by far the best threading tutorial on RU-vid. I've literally watched 10 videos and most of them are just writing code not explaining anything. You do the exact opposite where you focus on explaining the code. I just gave a like and subscribe. THANK YOU
That was a great introduction for me. Simple and clear. I watched other examples before this one and I left more confused. I'm half deaf, too, so I appreciated the lower music volume, too (one symptom of partial deafness is the inability to separate background from foreground sounds of equal volume)
Step by step roadmap to learn data science in 6 months: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-H4YcqULY1-Q.html Learn data science with pandas: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-CmorAWRsCAw.html Machine learning tutorials with exercises: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-gmvvaobm7eQ.html
Bruh I've always hated python but it's a very useful language so I've been forcing myself to learn it. You are absolutely the most clear and concise way I've found so far to explain it. Now I understand it and can actually use it, instead of just having code to copy and paste
hey this is amazing! I actually learned something from this while having the chill acoustic music playing. It really makes it less frustrating. Thank you my dude.
Very nice tutorial. Many thanx for making my concepts clear. I saw all these video continuously for 3 hours. I just wish to comment on one minor detail. For each of four numbers, loops wait for 0.2 seconds i.e one loop waits for 0.8 seconds so two loops will wait for 1.6 seconds which is the total time of execution! Without the waiting time the numbers for time would have been very small to be noticed. This could have been mentioned by the author.
Thanks Sir. I have checked your website and gone through your details. You are such a nice person and spreading knowledge freely. This kind of attitude defines humanity is still there for such people as me who have nor enough ability to buy any premium course. I am from Bangladesh. Sir Thanks
Great explanation. This is so clear. Thanks so much! I love how you used "busy mom" as the non-coding example which made everything afterward so easy to digest. I initially did not follow what join() meant til I stuck til the end of the video after you provided a diagram with it :) Everywhere else on the Internet has not done a good job of explaining JOIN(), but you did! :)
Thanks, I spent a lot of time thinking about on how to do something like this, thinking I'd need a CS major to figure it out, but you've explained it very well in 10 minutes.
Hoi , Hier Mom is making multi tasks at the same time , but i see in Multithreading --> steping from one task to the other { AND NOT DOING LIKE MOM } ( 1.execute 1st part fonction n1 then execute 1st part fonction n 2 - 2. execute 2d part fonction n1 then execute 2d part fonction n2.............. making a for loop between 2 fonctions with a 2 X nested loop OR NOT ?? if u comment # time.sleep(0.2) it will be done in 0.0 second but fonction n2 have to wait till fonction one is done // like i said befor i' m new in this programmer world with Zero exprerience , please correct me if i m wrong . Nice done Professor , LOVE UR CHANNEL 😍 by the way = I start today ur step by step roadmap to learn data science in 6 months , I hope to get it ( i m a 41 years old man 😁 with kids ) is not easy to have more then one hour a day free for it
Actually, there is no need to front method, we can handle it with dequeue method. just hold the dequeued thing to a variable and print it after that you can do string manipulation
Hello. I believe it’s misleading when you say “in parallel”. In parallel would be if you are using multiple cores (so multiprocessing). I believe the proper term to use here is “concurrently”. What do you think @author?
Thank you, great stuff! But the music is a bit distracting...would you be able to remove the music in the future vids? Keep giving the people what they want...
@@durbish the printed output from threads can seem out of order since they run independently. There's probably more going on under the hood as there might be delays getting the printed output to the main thread. But it's pretty common
In CPython, the interpreter enforces a Global Interpreter Lock which basically means that at any given instant only one thread of a py program is allowed to run. So multithreading is just an illusion in python because the CPU is just using context switching to run the multiple threads.
if we have not added that 0.2 then it will not wait and complete the square arr completely first and then cube but in less or same time as 0.8, Its not multi threading but if we see from the time saving point then its the same , multi threading will not be required in this examples if you remove 0.2 , just my thoughts. Multitasking is awesome for the examples you said like CPU is waiting for the data etc , when CPU is idle.
Amazing video. Simple and Clear. What are the two advantages that prevents? Can you point me to the advanced video which you were referring to at the end of the video?
Can you please explain this. Here t= time.time() and in the " done it" line we subtract time.time() by t. Which means it should be Zero. But how it's giving the exact output.
In Exercise 1, the second function has an infinite while loop, this loop could be helpful once we are working on stream data, but for this example we can use 'while food_order_queue.size()>0' cannot we?
Sir I did the same thing in which i am searching a specific word in the files of two different folders named "folder1" and "folder2".I make two threads and in each thread passing both functions find_text1() in "thread1" and find_text2() in "thread 2" both functions search the word in their respectiv folders . But there is no time difference between normal execution and with multi threading. Kindly guide me why their is no time difference ...