How To Use Multiprocessing In Python

Поділитися
Вставка
  • Опубліковано 24 сер 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.

КОМЕНТАРІ • 10

  • @arandomguy3526
    @arandomguy3526 Місяць тому

    Ur channel is really underrated

  • @harshgamer6105
    @harshgamer6105 Місяць тому

    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  Місяць тому

      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 Місяць тому

      @@TaylorsSoftware Got it, thanks for the explanation!

  • @Osamaforgaming
    @Osamaforgaming Місяць тому

    Who else did not understand this??

    • @TaylorsSoftware
      @TaylorsSoftware  Місяць тому

      What part was difficult to understand?

    • @Osamaforgaming
      @Osamaforgaming Місяць тому

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

    • @TaylorsSoftware
      @TaylorsSoftware  Місяць тому

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