9 lines
132 B
Python
9 lines
132 B
Python
from multiprocessing import Process
|
|
|
|
def f(name):
|
|
print('hello', name)
|
|
|
|
|
|
p = Process(target=f, args=('bob',))
|
|
p.start()
|
|
p.join() |