thread execution order

Rembrandt Q Einstein hercules.rockefeller at springfield.??.us
Thu Sep 30 11:53:23 EDT 2004


Axel Mittendorf wrote:
> "Rembrandt Q Einstein" wrote:
> 
>>I wouldn't do this with threads.  I'd use select() or similar to see if
>>the pipe is writable and if it isn't, buffer internally.
> 
> I thought about something like this too, but since I'm not allowed to
> use some kinda timer to write out the pending data I can't it that way.
> Therefor I wondered to use threads.

You don't need a timer.  Just every time your program tries to write, it 
first checks the pipe.  If it can write, it does.  If it can't, it 
buffers until the next time it tries.



More information about the Python-list mailing list