Python Tutorial – 27. Multiprocessing Introduction

///Python Tutorial – 27. Multiprocessing Introduction

Python Tutorial – 27. Multiprocessing Introduction

FavoriteLoadingAdd to favorites

In this tutorial we will cover basics of multiprocessing. We will create two processes (each performing different tasks) using multiprocessing module.

Code used in this tutorial:
Live code:

Next Video:
Python Tutorial – 28. Sharing Data Between Processes Using Array and Value:

Website:
Facebook:
Twitter:
Patreon:

source

By |2019-10-25T23:35:30+00:00October 25th, 2019|Python Video Tutorials|21 Comments

21 Comments

  1. JeongHyun SEO October 25, 2019 at 11:35 pm - Reply

    Thumbs up!

  2. Srikanth Mothkuri October 25, 2019 at 11:35 pm - Reply

    awesome explanation bro……..

  3. Govind Rai October 25, 2019 at 11:35 pm - Reply

    @codebasics you should add you multithreading vs multiprocessing video into the Python Multithreading/Multiprocessing playlist!

  4. All New Trending October 25, 2019 at 11:35 pm - Reply

    if name == main what does it means

  5. abc def October 25, 2019 at 11:35 pm - Reply

    what's the difference between multithreading and multiprocessing in python ?

  6. Dheeraj Kr. Gupta October 25, 2019 at 11:35 pm - Reply

    Whether the parallel and multiprocessing are the same thing or different one?

  7. Neuroszima October 25, 2019 at 11:35 pm - Reply

    Hmmm i actually learned something from this, nicely done 😀

  8. Marvin Ellis October 25, 2019 at 11:35 pm - Reply

    Great Video My Friend!

  9. Mack Black October 25, 2019 at 11:35 pm - Reply

    well done bro

  10. Caio Madalon October 25, 2019 at 11:35 pm - Reply

    Please, tell me what the background music is ;D

  11. Dragon Pivate October 25, 2019 at 11:35 pm - Reply

    inside function calc_square(numbers), the global is not necessary,.

  12. Kosh Naranek October 25, 2019 at 11:35 pm - Reply

    Background music is good idea….nicely done video…subscribed

  13. Taha Arif October 25, 2019 at 11:35 pm - Reply

    Why do we pass a tuple in the args as opposed to just the array?

  14. Wellington Pazmiño October 25, 2019 at 11:35 pm - Reply

    Hi,
    I have the following problem: the print function unable while multiprocessing.Process is being run. The example is: from multiprocessing import Process

    def f(name):

    print('hello', name)

    if _name_ == '__main__':

    p = Process(target=f, args=('bob',))

    p.start()

    p.join()

    but, the program does not execute print('Hello', name)

    Please, You can help me with this.
    Regards,
    Wellington P.

  15. pragati pawar October 25, 2019 at 11:35 pm - Reply

    Simple and clear.. helped me a lot… thanks a lot!!!

  16. Rizki red Hidayatullah October 25, 2019 at 11:35 pm - Reply

    This python 2 or 3?

  17. Ahmad Ordikhani October 25, 2019 at 11:35 pm - Reply

    Actually it make sense when we avoid using join(), because if we use join, main process will wait until the another process are finished and I think the main goal of multiprocessing is for parallel programming, so it would be better when we can run processes concurrently, so without join function. At least for my project if I use join, then it is the same as I run the eintire code in one process.

  18. Richard October 25, 2019 at 11:35 pm - Reply

    This is an incredibly helpful video. So clear! Excellent job!

  19. KrIsHnA ChAiTaNyA October 25, 2019 at 11:35 pm - Reply

    RIP the 7 people who disliked, one of the best explaination

  20. DiNaMiC Nitro October 25, 2019 at 11:35 pm - Reply

    Excellent Tutorial!

Leave A Comment

*