494,386 views
5 votes
5 votes
How to use multi processing with a class in python.

User Monadoboi
by
2.8k points

1 Answer

12 votes
12 votes

Answer:

from multiprocessing import Process def display(): print ('Hi !! I am Python') if __name__ == '__main__': p = Process(target=display) p.start() p.join() In this example, at first we import the Process class then initiate Process object with the display () function.

Step-by-step explanation:

User Birdmw
by
2.8k points