Skip to content

Instantly share code, notes, and snippets.

@def
Created September 25, 2013 10:25
Show Gist options
  • Save def/6697785 to your computer and use it in GitHub Desktop.
Save def/6697785 to your computer and use it in GitHub Desktop.
import multiprocessing
import time
a, b = multiprocessing.Pipe()
def func(conn):
while True:
conn.recv()
p = multiprocessing.Process(target=func, args=(b,))
p.start()
print p.pid
while True:
a.send('asdsadas'*100000)
print 'send'
time.sleep(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment