Python Multithreading in 3 Minutes

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

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

  • @bradydyson65
    @bradydyson65 2 года назад +21

    That was really pretty good. Super succinct. However, I would have liked to see an example with threads performing different operations as well, instead of just calling the same function four times.

  • @yopp8789
    @yopp8789 2 года назад +4

    Clear and straight to the point, if only all tutorials were like this

  • @pd-jb5xv
    @pd-jb5xv 2 года назад

    I wish all helper videos were this good. Good and short. Beautiful man!

  • @yamani3882
    @yamani3882 2 года назад +11

    What an amazing straight to the point video ❤️

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

    Thank you, enough to start coding and tinkering along the way

  • @dera_ng
    @dera_ng 2 года назад +4

    Amazing video... Thanks for explaining with such an instantly understandable example!

  • @ja0_jakm
    @ja0_jakm 2 года назад

    i rarely like a video and comment but this Straight to the Point tutorial deserves it

  • @harrybellingham98
    @harrybellingham98 2 года назад +1

    this is what I need. I wish you'd show an example of it in trading bots

  • @AbdulRahman-vj9el
    @AbdulRahman-vj9el Год назад

    What an amazingly brief explanation.

  • @josemanuel5205
    @josemanuel5205 2 года назад

    Thank you for explaining a complex subject in a way that's very easy to understand

  • @danflurry
    @danflurry 2 года назад +1

    SUPER helpful. Thank you.

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

    You're the goat thank a lot my friend

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

    you explained this topic so well, thanks for the vids. Can you drop anymore java vids please? or python vids and how to learn by ourselves?

  • @Elliot_Fish
    @Elliot_Fish 2 года назад +2

    Great tutorial, very helpful!

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

    thanks man you saved me a lot of time

  • @MrHeatification
    @MrHeatification 2 года назад +1

    Splendid wonderful Sir

  • @cinquecento1985
    @cinquecento1985 2 года назад +1

    Not a bad Analogy with the painted Walls. How to I tell the one of the painters to change color while painting?

    • @QuantGuild
      @QuantGuild  2 года назад

      One option is to add and pass different arguments to your function when starting the threads!

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

    @QuantGuild - This was interesting but slightly incorrect. You got the improvement since you have a sleep() call which causes the interpreter to make another thread do some work. But - and that's kind of important - you will NOT get an improvement if you actually need some work done, since the GIL will effectively block access to a shared resource. Multi-threading is only useful when you have an idle time (I/O, sleep, etc.). For CPU bound needs, you should use Multi-processing.
    I do assume that you actually KNOW all this, but I think you should have mentioned it in the video.

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

      I appreciate the comment Elad, perhaps a longer video will be made to formally explain all of this.

  • @wuukaa9079
    @wuukaa9079 2 года назад

    The way you explained it was really good! Thank you for your help 😁

  • @chriskeo392
    @chriskeo392 2 года назад

    And just like that ..
    After 3 year of python - I finally f#*!%¢=`∆ understand threading
    Thank you!

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

    simple and useful!
    Thanks dude

  • @aleXelaMec
    @aleXelaMec 2 года назад +1

    hey, nice vid, but why print starter before sleep finished?! shouldnt sleep block the code from continuing ?!

    • @QuantGuild
      @QuantGuild  2 года назад

      This is exactly what multithreading accomplished! The task of sleeping is pushed to another thread allowing us to begin another operation in parallel. Think of it like counting a bag of marbles, you can sit by yourself and count the marbles which would take N time OR you can divide the marbles into four subsets invite three friends over and count and sum each subset resulting in a (4x) faster operation! (The actual speed up in Python varies by complexity and whether or not you use GPU)

  • @Iamkabera
    @Iamkabera 3 года назад +1

    Hi, nice tutorial, would you mind helping, I would like to input dynamic variable into the class, how can I do that?

  • @meysamah9440
    @meysamah9440 2 года назад

    Good clear and to the point , thanks

  • @theignaciortega
    @theignaciortega 2 года назад

    Amazing. Thank you very much.

  • @kevinativon270
    @kevinativon270 2 года назад +1

    That's so much amazing

  • @m4.code.pythonger
    @m4.code.pythonger Год назад +1

    How are you getting execution time in terminal without using time function, which plugin is used for that?

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

      This was native to Atom, now we use VSCode/Jupyter

    • @m4.code.pythonger
      @m4.code.pythonger Год назад +1

      @@QuantGuild thank you.. ❤️

  • @joeh3h
    @joeh3h 17 дней назад

    Dude, thank you!

  • @therainmanitsme2794
    @therainmanitsme2794 2 года назад +1

    Amazing explanation, thanks a lot. Next time could you please render in 1080p :)

  • @EgoboosterDZ
    @EgoboosterDZ 3 года назад +1

    Great explanation!

  • @R9992009
    @R9992009 2 года назад +1

    Great video....

  • @originalni_popisovac
    @originalni_popisovac 2 года назад

    Bro i liked, this video is very useful, thank you ;)

  • @s.aravindh6227
    @s.aravindh6227 3 года назад +2

    Nice video bro 👍👍

  • @MuhammadUsman-yi8bl
    @MuhammadUsman-yi8bl 2 года назад

    The best example

  • @nonameneeded405
    @nonameneeded405 2 года назад +1

    thank you

  • @MegaHakii
    @MegaHakii 2 года назад +1

    We run it and boom.

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

    accurate, thanks

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

    great vid appreciate

  • @dilonnemuchingami1331
    @dilonnemuchingami1331 4 года назад

    Great video!

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

    Cmon i want to ctrl c and ctrl v, where's da CODEEEEE!!!!

  • @NamelessSpirit
    @NamelessSpirit 2 года назад

    thank you

  • @thesebas3090
    @thesebas3090 3 года назад

    walls painted!
    bogos binted?

  • @codingwithbedirhan
    @codingwithbedirhan 3 года назад +1

    Booomm :D