Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

multiprocessing join python

from multiprocessing import Process

def say_hello(name='world'):
    print "Hello, %s" % name

p = Process(target=say_hello)
p.start()
p.join()	# Tells the program to wait until p has finished it's job before exiting
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #multiprocessing #join #python
ADD COMMENT
Topic
Name
7+6 =