-
-
Save def/6697785 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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