def _job2():
    for _ in range(3):
        print(multiprocessing.current_process(), 'is working')
time.sleep(2)
print(multiprocessing.current_process(), 'is done')
ctx = multiprocessing.get_context('forkserver')
worker = ctx.Process(target=_job2)
Having child-processes allow rpc-server to restart while children survive