Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from multiprocessing import Process, Queue
- def implement(q):
- x = 10000
- q.put("abc" * 1000)
- def main():
- q = Queue()
- p = Process(target=implement, args=(q,))
- p.start()
- p.join()
- print q.get()
- if __name__ == "__main__":
- main()
Add Comment
Please, Sign In to add comment