Process intercommunication

Mikael Olofsson mikael at
Mon Nov 5 16:13:50 CET 2001

Thanks Greg!

On 05-Nov-2001 Grzegorz Dostatni wrote:
 >  For interprocess communications You have a couple of options. If A can
 >  start B at a proper time You could solve Your problem with pipes. (using
 >  popen I believe). If B is started differently, You could look into
 >  signals to catch A's attention.  The easisest thing though it so make A a
 >  server and make B connect on a given port.
 >  An example of a server and a client is at:

Tried it, works perfectly.

 >  It is quite possible to have a client and a server on the same machine. If
 >  You're not going to have more than 10 processes trying to access Your
 >  server (at a time) I'd recommend using the threading module to make things
 >  a bit easier on Yourself. (watch out for mutual exclusion though ;-) ).

I will try that too.

 >  A reading list (assuming You'd like to go with sockets)
 > (socket module)
 > (thread module)
 > (threading
 >  module)
 >  The last one is a higher level  version of the second one.

Looks like I will find all I need in the proposed reading. Thanks again.


E-Mail:  Mikael Olofsson <mikael at>
Phone:   +46 - (0)13 - 28 1343
Telefax: +46 - (0)13 - 28 1339
Date:    05-Nov-2001
Time:    16:09:57

         \ /     ASCII Ribbon Campaign
          X      Against HTML Mail
         / \

This message was sent by XF-Mail.
Linköpings kammarkör:

More information about the Python-list mailing list