Analogy: You need to dry five shirts. Each shirt takes 5 minutes. If you let them for drying individually, then they are going to take 25 minutes and if you dry them simultaneously, they are going to take 5 minutes. So drying up five shirts simultaneously is the same as doing multithreading...
Anyone needing more help, join refers to joining that specific thread with the main thread. If we're not joining with the main thread, then the time it shows is the actual execution time of the main thread. But if we join, then it shows the actual time it took for all the threads to finish execution at the same time and then merged with the main thread using join() method.
Bhai literally yeh concept shayad advanced walo ko bhi na pta ho (Literally multi threading jaise concepts pe videos dhund lo bohot kam milege , hindi mei toh katai nai) Bhai feeling lucky to be here #day97
Any video on thread Lock and Rlock? It would be more helpful if you provide us with data science topics like hadoop, kubernetes etc. your content help me alot in understanding python language.
import threading from time import sleep class Vaibhav(threading.Thread): def fun1(self): for i in range(1, 10): print("hello") sleep(2) class Soni(threading.Thread): def fun2(self): for j in range(1, 13): print("everyone") sleep(2) obj1=Vaibhav() obj2=Soni() t1=threading.Thread(target=obj1.fun1) t2=threading.Thread(target=obj2.fun2) t1.start() sleep(1) t2.start() t1.join() t2.join() print("thank you for using my application")
Hi..i am really happy that I got job in IT industry bcoz of your videos but I need your more support after laravel which course i have to do like c,c++, c# , python, and how i can to move cloud computing as a admin or developer
ChatGPT generated: Asyncio and multithreading are two different ways to make your Python programs do multiple things at the same time. Asyncio is like having one person who can quickly switch between different tasks. This person can start one task, and then quickly switch to another task while the first task is waiting for something to happen (like waiting for a web page to load). This way, the person can do many tasks at once without wasting time waiting. Multithreading is like having many people working together to finish a big job. Each person can do a small part of the job at the same time, so the job can be done much faster. This is useful for tasks that require a lot of calculations or processing power, like machine learning or rendering graphics. In simple terms, asyncio is suitable for tasks that involve waiting for something to happen, while multithreading is good for tasks that require a lot of processing power. The choice between them depends on what you want your program to do.
Sir aap bahut aache ho sir suniya na img draw by python sikasakte he Kya sir please 🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏 please please please please upload kigiyana sir
Hyy harry just a quick question. In any language of computer do we have to learn some formulas or is it just the concept that should be clear and we’ll be able to make the codes ourselves??
the post grid, elemantor, genretpress इन तीनो प्लगइन कर के प्लीज् एक साईट बनाओ न भाई free में आप को देख कर मैंने काफी कुछ सिखा है बाकि इन तीनो को इस्तेमाल करना नहीं आ रहा मुझे
asyncio doesn't do multiple tasks at same time. In reality async is just efficient way of doing one task at one time. Async is best used whenever the tasks require "waiting" for example user input or requesting an API. In that case, the processor sits idle during this "waiting time" while doing synchronous programming. However during Asynchronous programming, whenever a task is asked to "await" for a specific thing to happen (like recieving user input or API data) the computer immidiately switches its whole focus to another "ready" task and keeps running that task until either it also "awaits" for something or finishes executing. Once either of those two things happen, the computer again checks for which of the asynchronous scheduled tasks are "ready" to be started. Let's assume for this example that by this time the first task had retrieved the data that we had asked it to retrieve. In that case the first task is not "awaiting" for anything but its "ready" for the computer to take control of it. Hence after the SECOND task "awaits" something the computer switches to executing first task again and hence this process continues. In multithreading, the CPU is literally divided into threads and the computer does multiple tasks at same time. It is like doing two different tasks with two different hands of a human while async means quickly switching from one task to another whenever you are idle and completely focussing on one task only. It is best used whenever you dont have these "waiting time gaps" in both tasks
Sir, I have a code where I want to read and process 8 fwf files of 1.4GB (11 lackh rows). What steps to use for parallel processing ? I am running code in linux with 16vCPU, 256 GB ram and 15.46 GB disk space.
I did the challenge for 52 days then never could resume 😭 Plz someone give motivation, i feel like i cant finish anything n will be stuck in the support role forever
Bro its easy....you just have to give 10 min in a day to watch 1 video. 1 video a day that's all. 10 min is not a long time. We watch entertainment videos for many hours in a row, binge watch a whole web series. Then can give 10 min in day for learning.
bhai maine toh 52 se he suru kari I mean mujhe phle se aati the baki but agar tum use miss karoge jo 52 ke baad h toh bahut bekar h wahi se toh real python power suru hoti h
Motivation never works and here you are kinda smart you commnted on this video cause you know that people here are consistent and almost completed the 100 days of code For me motivation always works for short period so i can give you some tips: 1. Execute learning in the code 2. Make a task list in which python is the topmost priority or you could say that i can't eat until i watch 1 video of 100 days of code
ज्यादा नॉलेज होने का फायदा लेकिन जो इनसे सिख रहा इनका नुकसान ,क्यू की इनको सब का सब नॉलेज यहां ही उड़ेल देना होता है ,ये सोचे बिना की लोग सिख रहे हसी चीजे।
Hi .i need some guidance.i complete all playlist but I am not understand well because I am beginner.Any one guide me what step I take next .I wait for you opinions. Thanks friends
Analogy: You need to dry five shirts. Each shirt takes 5 minutes. If you let them for drying individually, then they are going to take 25 minutes and if you dry them simultaneously, they are going to take 5 minutes.
So drying up five shirts simultaneously is the same as doing multithreading...
uhhhh...okay...but you don't know physics XD
@@grapeshott B.A student 😂
Anyone needing more help, join refers to joining that specific thread with the main thread. If we're not joining with the main thread, then the time it shows is the actual execution time of the main thread. But if we join, then it shows the actual time it took for all the threads to finish execution at the same time and then merged with the main thread using join() method.
You are amazing, MashaAllah! Allah bless you!
muslim spotted btw i m muslim to allahukbar
3 more videos r left....and soon we'll be great python developers.... thank you so much sir.... we'll be always indebted to you...
Very nice and to the point Harry, I tried some other videos as well however you did explained it very well.
Your videos are helpful to me thanks Harry bro
now i have completed successfully my python and now have a tim eto move ahead with this.
Best teacher forever
Bhai literally yeh concept shayad advanced walo ko bhi na pta ho
(Literally multi threading jaise concepts pe videos dhund lo bohot kam milege , hindi mei toh katai nai)
Bhai feeling lucky to be here
#day97
thanku harry bro i just easily understand this where no one explain where harry can explain
Sir i am Big fan of your's and this is a wonderful course 🔥🔥
Nice explanation bhaiya🧡
wow, this video is perfect to learn or revise multithreading
sir app bohot achy tareky sy samjaty hai please linux os per be ak playlist banawo khaskar kali linux
thank you sir for such great course
Sir ji...me abhi aapki videos se js sikh raha hu...or html and css Sikh Chuka hu... literally Muje bahot help mili he..love from Gujrat..👌
Kem cho ? mazzama 😁
to bhai udhar comment mar na
Any video on thread Lock and Rlock?
It would be more helpful if you provide us with data science topics like hadoop, kubernetes etc. your content help me alot in understanding python language.
Harry bhai plz. Blockchain ke lia ak full course playlist me add korado ... Mujhe mention korne nehi vulna. Plz.
Normal code and the mentos code @5:20
monday ko annual exam hai python ka i am literally watching all your vids in a day
shabash ek din me python course
Slowest step is rate determining step(rds)
👍 Nice Work CWH Team 👌
Have watched two times, then understood what's going on.😁
Next series Android Development please 🙏
You should teach us Chemical kinetics tooooo 🤩🤩
Namaste sir
Present #Day97
Sir I am seeing your old playlist and have completed 30 lectures now should I shift to this or complete that one
Excellent!!
Thanks Harry Bhai
import threading
from time import sleep
class Vaibhav(threading.Thread):
def fun1(self):
for i in range(1, 10):
print("hello")
sleep(2)
class Soni(threading.Thread):
def fun2(self):
for j in range(1, 13):
print("everyone")
sleep(2)
obj1=Vaibhav()
obj2=Soni()
t1=threading.Thread(target=obj1.fun1)
t2=threading.Thread(target=obj2.fun2)
t1.start()
sleep(1)
t2.start()
t1.join()
t2.join()
print("thank you for using my application")
what's the point of printing 10 times hello and 13 times everyone ?
ma ny ye learn kr li thi but aj kl zyada demand django or flask ki ha simple bht kam ha
Hello sir ❤️🤞
Good 👍
Thanks Brother
#Day97 done. 3 more days to go!
Hi..i am really happy that I got job in IT industry bcoz of your videos but I need your more support after laravel which course i have to do like c,c++, c# , python, and how i can to move cloud computing as a admin or developer
how you get job
Paneer butter masala is everyone's favorite 😊
Brother why don't you make a video on download forms after submission or payment it is very useful many beginners will want to learn...
Then what is the difference left between multithreading and AsyncOI
ChatGPT generated:
Asyncio and multithreading are two different ways to make your Python programs do multiple things at the same time.
Asyncio is like having one person who can quickly switch between different tasks. This person can start one task, and then quickly switch to another task while the first task is waiting for something to happen (like waiting for a web page to load). This way, the person can do many tasks at once without wasting time waiting.
Multithreading is like having many people working together to finish a big job. Each person can do a small part of the job at the same time, so the job can be done much faster. This is useful for tasks that require a lot of calculations or processing power, like machine learning or rendering graphics.
In simple terms, asyncio is suitable for tasks that involve waiting for something to happen, while multithreading is good for tasks that require a lot of processing power. The choice between them depends on what you want your program to do.
thank you so much lord
Hello Harry Bhai.... Please start the course on blockchain development
thanks
Present Sir 🔥
Thanks sir.
Harry bhai python absolute beginner wali series ka practice problem 9 ka solution btado plzz
You are awesome
Super
Present sir on #Day97
Sir aap bahut aache ho sir suniya na img draw by python sikasakte he Kya sir please 🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏 please please please please upload kigiyana sir
Hyy harry just a quick question. In any language of computer do we have to learn some formulas or is it just the concept that should be clear and we’ll be able to make the codes ourselves??
Present sir
Hello Harry bhai 😁❣️
Present Sir
Yes I studied chemical kinetics
Also inheritance of biology and sets theory 😅
does those help any?
@@littlejin-n8x nope in programing it doesn't help u just only have the idea of what it means
Harry bhai next upload laraval videos.. I AM FROM PAKISTAN ❤❤.. BIG FAN
Sir, Please Iske baad Java kaa bhi 100 days wala playlist bana dijiye naa🥺🥺
Sir beginners ke coding karana sikhao 🙏🙏
Wow
the post grid, elemantor, genretpress इन तीनो प्लगइन कर के प्लीज् एक साईट बनाओ न भाई free में आप को देख कर मैंने काफी कुछ सिखा है बाकि इन तीनो को इस्तेमाल करना नहीं आ रहा मुझे
Plzzz @codewithharry Course on Salesforce
When will you teach numpy and pandas
Next Java + DSA
Haryyy bhaii❤
Plzz #CodeWithHarry Course on Salesforce developer with projects
10:42 Here server speed is called bandwidth, isn't it????
please correct me if I'm wrong.
Next Android Development Series plz 💥💥💥💥💥💥💥💥💥💥💥💥
Django next courses
Sir apke html ke videos ke link dedo na
Where are You Pakistani's tell him that you are his biggest fan
Yes I'm his student
😂
Yes
Nice
Day 97 of 100 of python challenge completed.#100DaysofCode #100dayspythonchallenge
bhiyajee please tell me what is the difference between asyncio and multithreading, both are doing the same work right..
I have this same questionl
asyncio doesn't do multiple tasks at same time. In reality async is just efficient way of doing one task at one time. Async is best used whenever the tasks require "waiting" for example user input or requesting an API. In that case, the processor sits idle during this "waiting time" while doing synchronous programming. However during Asynchronous programming, whenever a task is asked to "await" for a specific thing to happen (like recieving user input or API data) the computer immidiately switches its whole focus to another "ready" task and keeps running that task until either it also "awaits" for something or finishes executing. Once either of those two things happen, the computer again checks for which of the asynchronous scheduled tasks are "ready" to be started. Let's assume for this example that by this time the first task had retrieved the data that we had asked it to retrieve. In that case the first task is not "awaiting" for anything but its "ready" for the computer to take control of it. Hence after the SECOND task "awaits" something the computer switches to executing first task again and hence this process continues.
In multithreading, the CPU is literally divided into threads and the computer does multiple tasks at same time. It is like doing two different tasks with two different hands of a human while async means quickly switching from one task to another whenever you are idle and completely focussing on one task only. It is best used whenever you dont have these "waiting time gaps" in both tasks
Sir, I have a code where I want to read and process 8 fwf files of 1.4GB (11 lackh rows). What steps to use for parallel processing ? I am running code in linux with 16vCPU, 256 GB ram and 15.46 GB disk space.
I did the challenge for 52 days then never could resume 😭
Plz someone give motivation, i feel like i cant finish anything n will be stuck in the support role forever
Bro its easy....you just have to give 10 min in a day to watch 1 video. 1 video a day that's all. 10 min is not a long time. We watch entertainment videos for many hours in a row, binge watch a whole web series. Then can give 10 min in day for learning.
bhai maine toh 52 se he suru kari
I mean mujhe phle se aati the baki
but
agar tum use miss karoge jo 52 ke baad h
toh bahut bekar h
wahi se toh real python power suru hoti h
bhai agar kuch samaj nahi aata tou chatgpt se explain karne ko bolo kafi aacha samaj aa jayega
Motivation never works and here you are kinda smart you commnted on this video cause you know that people here are consistent and almost completed the 100 days of code For me motivation always works for short period so i can give you some tips:
1. Execute learning in the code
2. Make a task list in which python is the topmost priority or you could say that i can't eat until i watch 1 video of 100 days of code
❤️
day 97 completed
is this topic is same as asyncio
i feel the same coz it sounds soo similar, right?
Present sir ✋
Legend
Harry one question
Is multithreading is same as asynchronous?
I have this same questionl
Why can't we use asyncio?
Sir, can we do ASYNCHRONOUS PROGRAMMING in place of THREADING ???
I have this same questionl
@@RaghavCoderPY but no reply so far 😅
@@abhinashjena5392 I know but I think when he open youtube some how he read my comment
Add subtitles
Day 97 done
hello, rohan with id 420, are u batchmate of harry ?
Sir ya dos tool bnanay ma help kray gi
Bhaiya iske baad web development in python for 100 days plsss
ज्यादा नॉलेज होने का फायदा लेकिन जो इनसे सिख रहा इनका नुकसान ,क्यू की इनको सब का सब नॉलेज यहां ही उड़ेल देना होता है ,ये सोचे बिना की लोग सिख रहे हसी चीजे।
cant we do the same thing with asyncio???
yes we can I think
1st comment Harry 💞
You have told same example as async
Sir how can i end a thread which has a infinite loop going on???
Sir kia WordPress development ka scope Pakistan ma Hy 2023 on furher going please make sure
Hi .i need some guidance.i complete all playlist but I am not understand well because I am beginner.Any one guide me what step I take next .I wait for you opinions.
Thanks friends
google's system mistakenly leaked something of you. CUT THAT PART PLS 🤖
Ty Bhai ❤️
#day97
Bhai men Pakistan se kia ap muje list bna den ge k web development k leae kia kia sekhna zarori he please
only 3 dasys left , yeeeee :):):)
🙏👍
I am first watching this video
I'm present 💝