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