Python Forum
example of multiprocess piping - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: example of multiprocess piping (/thread-1045.html)



example of multiprocess piping - Skaperen - Nov-29-2016

i'm looking for example code that can run two or more subprocesses that each periodically output data at different random times over separate pipes with the parent process (without threads) reading them as they are output, and knowing which pipe they are coming from, or doing something similar enough to derive this kind of thing.

any suggestions such as search terms to get this kind of thing out of google?


RE: example of multiprocess piping - Larz60+ - Nov-29-2016

What's the name of your book?


RE: example of multiprocess piping - Larz60+ - Nov-29-2016

This sounds like something you might find in the python cookbook,
programming python, or perhaps https://pymotw.com/3/


RE: example of multiprocess piping - Skaperen - Dec-02-2016

well, i hope it is at that website. i have a hard time reading physical books and other things that size such as kindles and notebooks. a laptop works fine for reading. mine runs ubuntu linux.


RE: example of multiprocess piping - Larz60+ - Dec-02-2016

Yea,

I wish O'Reilly would break the Lutz books into two volumes each.
Tim Oreilly, authored at least one, and got his start as a publisher from the set of X
books back in the 1980's they were big and fat, broken into volumes, but still too fat

The PYMOTW is one of my favorite sites, not a book and well indexed. Maintained by
Doug Hellmann author of 'The Python Standard Library by Example' (totally worth buying).
There are two sites, one for Python 2.7 for the diehards, and another for Python 3.