Multithreading in Python | Python Tutorial - Day #97

Поделиться
HTML-код
  • Опубликовано: 14 ноя 2024

Комментарии • 173

  • @amikoss5635
    @amikoss5635 Год назад +76

    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...

    • @grapeshott
      @grapeshott 5 месяцев назад +2

      uhhhh...okay...but you don't know physics XD

    • @Pawan_singh01780
      @Pawan_singh01780 Месяц назад

      ​@@grapeshott B.A student 😂

  • @anuragnayak9704
    @anuragnayak9704 11 месяцев назад +5

    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.

  • @asamadawais
    @asamadawais Год назад +11

    You are amazing, MashaAllah! Allah bless you!

    • @MurtazaKhan-i2k
      @MurtazaKhan-i2k 2 месяца назад +1

      muslim spotted btw i m muslim to allahukbar

  • @spaceenthusiasts8725
    @spaceenthusiasts8725 Год назад +20

    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...

  • @anoopnag7059
    @anoopnag7059 6 месяцев назад +1

    Very nice and to the point Harry, I tried some other videos as well however you did explained it very well.

  • @nakulborate2515
    @nakulborate2515 Год назад +4

    Your videos are helpful to me thanks Harry bro

  • @hostelnights1354
    @hostelnights1354 9 месяцев назад +2

    now i have completed successfully my python and now have a tim eto move ahead with this.

  • @khizarkareem7055
    @khizarkareem7055 Год назад +25

    Best teacher forever

  • @rmj-zh3hy
    @rmj-zh3hy Год назад +5

    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

  • @Codingwithdaksh
    @Codingwithdaksh 11 месяцев назад

    thanku harry bro i just easily understand this where no one explain where harry can explain

  • @yaminirawat9354
    @yaminirawat9354 Год назад +8

    Sir i am Big fan of your's and this is a wonderful course 🔥🔥

  • @user-ue5dl1rg9d
    @user-ue5dl1rg9d 4 месяца назад +2

    Nice explanation bhaiya🧡

  • @ayushman_sr
    @ayushman_sr 7 месяцев назад

    wow, this video is perfect to learn or revise multithreading

  • @generalinformatedvedios880
    @generalinformatedvedios880 Год назад +1

    sir app bohot achy tareky sy samjaty hai please linux os per be ak playlist banawo khaskar kali linux

  • @Thalapathy-Vs-Hyena
    @Thalapathy-Vs-Hyena 4 месяца назад

    thank you sir for such great course

  • @dangergaming4040
    @dangergaming4040 Год назад +3

    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..👌

  • @shubhamkedia6915
    @shubhamkedia6915 Год назад +1

    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.

  • @freetime2021
    @freetime2021 Год назад +1

    Harry bhai plz. Blockchain ke lia ak full course playlist me add korado ... Mujhe mention korne nehi vulna. Plz.

  • @amikoss5635
    @amikoss5635 Год назад +1

    Normal code and the mentos code @5:20

  • @seokmin2624
    @seokmin2624 Год назад +7

    monday ko annual exam hai python ka i am literally watching all your vids in a day

  • @AbhishekKumar-on9qp
    @AbhishekKumar-on9qp Год назад

    Slowest step is rate determining step(rds)

  • @PeacefulPort
    @PeacefulPort Год назад

    👍 Nice Work CWH Team 👌

  • @HuzaifaKhan-iy5qj
    @HuzaifaKhan-iy5qj 2 месяца назад

    Have watched two times, then understood what's going on.😁

  • @learner8053
    @learner8053 Год назад +1

    Next series Android Development please 🙏

  • @RayanKhan-su3uc
    @RayanKhan-su3uc Год назад +1

    You should teach us Chemical kinetics tooooo 🤩🤩

  • @pankajsinghbisht76
    @pankajsinghbisht76 Год назад +2

    Namaste sir
    Present #Day97

  • @krishnajogi2391
    @krishnajogi2391 Год назад +1

    Sir I am seeing your old playlist and have completed 30 lectures now should I shift to this or complete that one

  • @asamadawais
    @asamadawais 5 месяцев назад

    Excellent!!

  • @narendraparmar1631
    @narendraparmar1631 10 месяцев назад

    Thanks Harry Bhai

  • @vaibhavsoni4680
    @vaibhavsoni4680 10 месяцев назад

    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")

    • @littlejin-n8x
      @littlejin-n8x 7 месяцев назад

      what's the point of printing 10 times hello and 13 times everyone ?

  • @Short_Reels_10
    @Short_Reels_10 Год назад

    ma ny ye learn kr li thi but aj kl zyada demand django or flask ki ha simple bht kam ha

  • @khushiyadav7071
    @khushiyadav7071 Год назад +2

    Hello sir ❤️🤞

  • @thebackbenchers1104
    @thebackbenchers1104 Год назад +1

    Good 👍

  • @manojshah5446
    @manojshah5446 8 месяцев назад

    Thanks Brother

  • @mariamhasan3733
    @mariamhasan3733 Год назад

    #Day97 done. 3 more days to go!

  • @MrHarry-dr2uk
    @MrHarry-dr2uk Год назад +1

    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

  • @sandhu01
    @sandhu01 Месяц назад

    Paneer butter masala is everyone's favorite 😊

  • @stormspirit1779
    @stormspirit1779 Год назад +2

    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...

  • @kshitijposwal9430
    @kshitijposwal9430 Год назад +5

    Then what is the difference left between multithreading and AsyncOI

    • @arpankarmakar16
      @arpankarmakar16 Год назад +2

      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.

  • @yashwankhede-c8e
    @yashwankhede-c8e 10 месяцев назад

    thank you so much lord

  • @harshnavadiya4754
    @harshnavadiya4754 Год назад

    Hello Harry Bhai.... Please start the course on blockchain development

  • @muhammadanasimran5567
    @muhammadanasimran5567 Год назад

    thanks

  • @Manish-qt1bz
    @Manish-qt1bz Год назад +1

    Present Sir 🔥

  • @meditationmusic6482
    @meditationmusic6482 Год назад

    Thanks sir.

  • @pvcgaming769
    @pvcgaming769 Год назад

    Harry bhai python absolute beginner wali series ka practice problem 9 ka solution btado plzz

  • @storm_buzz3635
    @storm_buzz3635 Год назад

    You are awesome

  • @dhruv_dharaiya
    @dhruv_dharaiya Год назад +1

    Super

  • @arpankarmakar16
    @arpankarmakar16 Год назад +1

    Present sir on #Day97

  • @sarojk.baidya6529
    @sarojk.baidya6529 Год назад

    Sir aap bahut aache ho sir suniya na img draw by python sikasakte he Kya sir please 🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏 please please please please upload kigiyana sir

  • @24kverma
    @24kverma Год назад +2

    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??

  • @ArvindSharma-qf7oy
    @ArvindSharma-qf7oy Год назад +2

    Present sir

  • @dp_editz7
    @dp_editz7 Год назад +2

    Hello Harry bhai 😁❣️

  • @sudhansubalasahoo
    @sudhansubalasahoo Год назад +1

    Present Sir

  • @awaiskhan1196
    @awaiskhan1196 7 месяцев назад

    Yes I studied chemical kinetics
    Also inheritance of biology and sets theory 😅

    • @littlejin-n8x
      @littlejin-n8x 7 месяцев назад

      does those help any?

    • @awaiskhan1196
      @awaiskhan1196 7 месяцев назад

      @@littlejin-n8x nope in programing it doesn't help u just only have the idea of what it means

  • @umanilyas
    @umanilyas Год назад

    Harry bhai next upload laraval videos.. I AM FROM PAKISTAN ❤❤.. BIG FAN

  • @socialinfluencer313
    @socialinfluencer313 Год назад

    Sir, Please Iske baad Java kaa bhi 100 days wala playlist bana dijiye naa🥺🥺

  • @smilings244
    @smilings244 Год назад

    Sir beginners ke coding karana sikhao 🙏🙏

  • @dhruv_dharaiya
    @dhruv_dharaiya Год назад +2

    Wow

  • @businessoffice1108
    @businessoffice1108 Год назад

    the post grid, elemantor, genretpress इन तीनो प्लगइन कर के प्लीज् एक साईट बनाओ न भाई free में आप को देख कर मैंने काफी कुछ सिखा है बाकि इन तीनो को इस्तेमाल करना नहीं आ रहा मुझे

  • @SSaurabh2013
    @SSaurabh2013 Год назад

    Plzzz @codewithharry Course on Salesforce

  • @Love-yv1fc
    @Love-yv1fc Год назад

    When will you teach numpy and pandas

  • @pulkitpareek
    @pulkitpareek Год назад +2

    Next Java + DSA

  • @dishatiwari1977
    @dishatiwari1977 Год назад

    Haryyy bhaii❤

  • @SSaurabh2013
    @SSaurabh2013 Год назад

    Plzz #CodeWithHarry Course on Salesforce developer with projects

  • @JitishxD
    @JitishxD 6 месяцев назад

    10:42 Here server speed is called bandwidth, isn't it????
    please correct me if I'm wrong.

  • @Dorya_Gaming
    @Dorya_Gaming Год назад

    Next Android Development Series plz 💥💥💥💥💥💥💥💥💥💥💥💥

  • @KanpurSwagger
    @KanpurSwagger Год назад +1

    Django next courses

  • @Bloodlinelover
    @Bloodlinelover Год назад +2

    Sir apke html ke videos ke link dedo na

  • @zunnurainzahoor
    @zunnurainzahoor Год назад +30

    Where are You Pakistani's tell him that you are his biggest fan

  • @lakhyadeepsen
    @lakhyadeepsen Год назад

    Day 97 of 100 of python challenge completed.#100DaysofCode #100dayspythonchallenge

  • @coding-qp3kr
    @coding-qp3kr Год назад +2

    bhiyajee please tell me what is the difference between asyncio and multithreading, both are doing the same work right..

    • @RaghavCoderPY
      @RaghavCoderPY 10 месяцев назад

      I have this same questionl

    • @aaku2684
      @aaku2684 3 месяца назад

      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

  • @sudhanshuraj1244
    @sudhanshuraj1244 27 дней назад

    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.

  • @bayerwps3305
    @bayerwps3305 Год назад +4

    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

    • @prithvirajpatil2916
      @prithvirajpatil2916 Год назад +3

      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.

    • @Anujmuzix
      @Anujmuzix Год назад +1

      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

    • @i_am_dumb1070
      @i_am_dumb1070 Год назад

      bhai agar kuch samaj nahi aata tou chatgpt se explain karne ko bolo kafi aacha samaj aa jayega

    • @bepositive271
      @bepositive271 Год назад

      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

  • @GREWAL-FUN
    @GREWAL-FUN Год назад +1

    ❤️

  • @gamex9553
    @gamex9553 Год назад

    day 97 completed

  • @xdarkfirebggaming7913
    @xdarkfirebggaming7913 Год назад +2

    is this topic is same as asyncio

    • @bhargavram4027
      @bhargavram4027 8 месяцев назад +1

      i feel the same coz it sounds soo similar, right?

  • @NEERAJ-dw9bt
    @NEERAJ-dw9bt 6 месяцев назад

    Present sir ✋

  • @divyanshkurmi2399
    @divyanshkurmi2399 Год назад

    Legend

  • @AH-tx4ce
    @AH-tx4ce 11 месяцев назад

    Harry one question
    Is multithreading is same as asynchronous?

    • @RaghavCoderPY
      @RaghavCoderPY 10 месяцев назад

      I have this same questionl

  • @yvg2009
    @yvg2009 День назад

    Why can't we use asyncio?

  • @abhinashjena5392
    @abhinashjena5392 Год назад

    Sir, can we do ASYNCHRONOUS PROGRAMMING in place of THREADING ???

    • @RaghavCoderPY
      @RaghavCoderPY 10 месяцев назад

      I have this same questionl

    • @abhinashjena5392
      @abhinashjena5392 10 месяцев назад

      @@RaghavCoderPY but no reply so far 😅

    • @RaghavCoderPY
      @RaghavCoderPY 10 месяцев назад +1

      @@abhinashjena5392 I know but I think when he open youtube some how he read my comment

  • @kesavanff
    @kesavanff Год назад +1

    Add subtitles

  • @RohanDasRD
    @RohanDasRD Год назад

    Day 97 done

    • @piyush9666
      @piyush9666 Год назад

      hello, rohan with id 420, are u batchmate of harry ?

  • @ziddiboy20
    @ziddiboy20 8 месяцев назад

    Sir ya dos tool bnanay ma help kray gi

  • @SantaniYodha
    @SantaniYodha Год назад

    Bhaiya iske baad web development in python for 100 days plsss

  • @victorb22622
    @victorb22622 6 месяцев назад

    ज्यादा नॉलेज होने का फायदा लेकिन जो इनसे सिख रहा इनका नुकसान ,क्यू की इनको सब का सब नॉलेज यहां ही उड़ेल देना होता है ,ये सोचे बिना की लोग सिख रहे हसी चीजे।

  • @technicalthuglife5120
    @technicalthuglife5120 Год назад +1

    cant we do the same thing with asyncio???

  • @dhananjayadk4611
    @dhananjayadk4611 Год назад +1

    1st comment Harry 💞

  • @prabinjain5336
    @prabinjain5336 Год назад

    You have told same example as async

  • @ayushmayekar4809
    @ayushmayekar4809 10 месяцев назад

    Sir how can i end a thread which has a infinite loop going on???

  • @saqibAlipro
    @saqibAlipro Год назад

    Sir kia WordPress development ka scope Pakistan ma Hy 2023 on furher going please make sure

  • @ahsanmushtaq0
    @ahsanmushtaq0 8 месяцев назад

    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

  • @Aadarsh_Legend
    @Aadarsh_Legend 9 месяцев назад +1

    google's system mistakenly leaked something of you. CUT THAT PART PLS 🤖

  • @ahmedsarkhot7092
    @ahmedsarkhot7092 Год назад +1

    Ty Bhai ❤️

  • @CoderzGaming093
    @CoderzGaming093 Год назад +1

    #day97

  • @tayyabbarkaat8749
    @tayyabbarkaat8749 Год назад

    Bhai men Pakistan se kia ap muje list bna den ge k web development k leae kia kia sekhna zarori he please

  • @AnkitKumar-lb6vi
    @AnkitKumar-lb6vi Год назад

    only 3 dasys left , yeeeee :):):)

  • @rishiraj2548
    @rishiraj2548 Год назад +1

    🙏👍

  • @Desiboyk2p
    @Desiboyk2p Год назад

    I am first watching this video

  • @jp-yu5wz
    @jp-yu5wz Год назад

    I'm present 💝