Skip to content

Instantly share code, notes, and snippets.

@KrzysztofCiba
Created February 19, 2013 18:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KrzysztofCiba/4988481 to your computer and use it in GitHub Desktop.
Save KrzysztofCiba/4988481 to your computer and use it in GitHub Desktop.
from multiprocessing import Pipe
if __name__ == "__main__":
( pout, pin ) = Pipe(False)
for i in range(1024):
pin.send("."*i*1024)
print "send", i*1024, "B"
r = pout.recv()
print "read", len(r), "B"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment