draining pipes simultaneously

Dmitry Teslenko dteslenko at gmail.com
Wed Mar 5 09:55:59 EST 2008


On Wed, Mar 5, 2008 at 3:39 PM,  <bockman at virgilio.it> wrote:
>  time.sleep() pauses ony the thread that executes it, not the
>  others. And queue objects can hold large amount of data (if you have
>  the RAM),
>  so unless your subprocess is outputting data very fast, you should not
>  have data loss.
>  Anyway, if it works for you ... :-)

After some testing I'll agree :) Without time.sleep() in main thread
python eats up all aviable processor time



More information about the Python-list mailing list