Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import multiprocessing
- def enviar_datos(pipe_terminal):
- pipe_terminal.send(['Python', '2'])
- pipe_terminal.close()
- if __name__ == '__main__':
- pipe_1, pipe_2 = multiprocessing.Pipe()
- proceso = multiprocessing.Process(target=enviar_datos, args=(pipe_2,))
- proceso.start()
- print(pipe_1.recv())
- proceso.join()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement