How To Use Multiprocessing In Python

Sdílet
Vložit
  • čas přidán 6. 07. 2024
  • In this video I go over how to utilize the Multiprocessing Module in Python. Multiprocessing allows us to bypass the Python Global Interpreter Lock also know as the GIL which restricts programs to run in a single process. Multiprocessing resembles the Threading module. This is useful for parallel programming and increasing the speed of your programs.

Komentáře • 10

  • @arandomguy3526
    @arandomguy3526 Před 18 dny

    Ur channel is really underrated

  • @harshgamer6105
    @harshgamer6105 Před 12 dny

    hey pal, nice vid, but what's the use of going into so much trouble when we can just create two different functions, or does this 'multiprocessing' has any specific use?

    • @TaylorsSoftware
      @TaylorsSoftware  Před 10 dny

      Great question. Multiprocessing allows you to run your code simultaneously without restricting you from Python's Global Interpreter Lock. In practice, this make your applications run much faster and will reduce the overhead on a single core on your cpu during run time.

    • @harshgamer6105
      @harshgamer6105 Před 9 dny

      @@TaylorsSoftware Got it, thanks for the explanation!

  • @Osamaforgaming
    @Osamaforgaming Před 18 dny

    Who else did not understand this??

    • @TaylorsSoftware
      @TaylorsSoftware  Před 18 dny

      What part was difficult to understand?

    • @Osamaforgaming
      @Osamaforgaming Před 17 dny

      I'm sorry I love your channel but this subject I didn't understand it​@TaylorsSoftware

    • @TaylorsSoftware
      @TaylorsSoftware  Před 16 dny

      No worries and thank you so much! Let me know if you have any suggestions.