# your code goes here
from multiprocessing import Process
import os
def run_proc(name):
print('run child process %s (%s)..' % (name, os.getpid()))
if __name__=='__main__':
print('parent process %s.' % os.getpid())
p=Process(target=run_proc, args=('test',))
print('child process will start')
p.start()
p.join()
print('child process end')
IyB5b3VyIGNvZGUgZ29lcyBoZXJlCmZyb20gbXVsdGlwcm9jZXNzaW5nIGltcG9ydCBQcm9jZXNzCmltcG9ydCBvcwoKZGVmIHJ1bl9wcm9jKG5hbWUpOgoJcHJpbnQoJ3J1biBjaGlsZCBwcm9jZXNzICVzICglcykuLicgJSAobmFtZSwgb3MuZ2V0cGlkKCkpKQoKaWYgX19uYW1lX189PSdfX21haW5fXyc6CglwcmludCgncGFyZW50IHByb2Nlc3MgJXMuJyAlIG9zLmdldHBpZCgpKQoJcD1Qcm9jZXNzKHRhcmdldD1ydW5fcHJvYywgYXJncz0oJ3Rlc3QnLCkpCglwcmludCgnY2hpbGQgcHJvY2VzcyB3aWxsIHN0YXJ0JykKCXAuc3RhcnQoKQoJcC5qb2luKCkKCXByaW50KCdjaGlsZCBwcm9jZXNzIGVuZCcp