Fast way to send message between 2 child processes? (using a file is too slow?)

Irmen de Jong irmen at -NOSPAM-REMOVETHIS-xs4all.nl
Mon Mar 8 22:16:01 EST 2004


Christian Seberino wrote:

> The only way I could think to do this was to write and read from a file but this
> is SLOW.
> 
> Is there another way **without using a file**??

Fastest is sending the other process a signal using kill().

Otherwise use a FIFO, or a socket. (Unix domain socket will do,
or TCP/IP if you want it to work over the network).
In any case, both processes need to know *something* about
each other to be able to talk ...

--Irmen



More information about the Python-list mailing list