question on multithreading, pipes

Aahz aahz at pythoncraft.com
Wed Dec 24 10:52:24 EST 2003


In article <mailman.168.1071522570.9307.python-list at python.org>,
Jean-Yves Nief  <j-y.nief at wanadoo.fr> wrote:
>
>but if I do that, I need to queue the events, which means I have to
>serialize the jobs perform by the threads, which is clearly not what I
>want as I am using threads :-)
>so my question is: how could I get around this without giving up
>multithreading ?

Use a separate thread just to communicate with the remote server.  This
still causes some serialization, but at least everything else is
independent.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

Weinberg's Second Law: If builders built buildings the way programmers wrote 
programs, then the first woodpecker that came along would destroy civilization.




More information about the Python-list mailing list