11 lines
159 B
Python
11 lines
159 B
Python
import multiprocessing as mp
|
|
mp.set_start_method('spawn')
|
|
|
|
def f(name):
|
|
print('hello', name)
|
|
|
|
|
|
|
|
p = mp.Process(target=f, args=('bob',))
|
|
p.start()
|
|
p.join() |