Guest User

Untitled

a guest
Dec 17th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. from multiprocessing import Process, Queue
  2.  
  3. def implement(q):
  4. x = 10000
  5. q.put("abc" * 1000)
  6.  
  7.  
  8. def main():
  9. q = Queue()
  10. p = Process(target=implement, args=(q,))
  11. p.start()
  12. p.join()
  13. print q.get()
  14.  
  15. if __name__ == "__main__":
  16. main()
Add Comment
Please, Sign In to add comment