title: how two process communicate with each other
body: <p>I'm very new with python.
  I started implementing twp daemon processes that will send messages to each other.</p>
  
  <p>right now i have just 2 daemons that are running.
  I don't understand how to build something that they can communicate through..
  I read that there are pipe, or queue ...
  sill, could not understand how to build a pipe or a queue that the two ends will be the two processes..</p>
  
  <pre><code>import multiprocessing
  import time
  import sys
  
  def daemon():
      p = multiprocessing.current_process()
      print 'Starting:', p.name, p.pid
      sys.stdout.flush()
      while (1):
          time.sleep(1)
      print 'Exiting :', p.name, p.pid
      sys.stdout.flush()
  
  def machine_func():
      p = multiprocessing.current_process()
      print 'Starting:', p.name, p.pid
      sys.stdout.flush()
      while (1):
          time.sleep(1)
      print 'Exiting :', p.name, p.pid
      sys.stdout.flush() 
  
  
      cs = multiprocessing.Process(name='control_service',  target=control_service_func)
      cs.daemon = True
  
      m = multiprocessing.Process(name='machine', target=machine_func)
      m.daemon = True
  
      cs.start()
      m.start()
  </code></pre>