title: How to read and share and process simultaneously data from parallel processes in Python 2?
body: <p>Here is my issue.
  I am working on a system that acquires data from three different devices (each time, I would like to launch a process that executes a "read_data" loop).</p>
  
  <p>From the three data recorded in realtime, I would like to add a loop on top of that , that would perform an action regarding these data.</p>
  
  <p>Ex (with an obviously really bad semantic, but that's for understanding the idea):</p>
  
  <pre><code>Class Sensor1:
  read_s1():
   data_s1 = ...
  Class Sensor2:
  read_s2():
   data_s2 = ...
  Class Sensor3:
  read_s3():
   data_s3 = ...
  
  main:
  read_s1.start()
  read_s2.start()
  read_s3.start()
  
  while True: #processing and acting regarding realtime data from the three sensors
     if read_s1.data_s1/read_s2.data_s2 + read_s3.data_s3 == 2:
                 #do something 
  </code></pre>
  
  <p>I tried to use threading and multiprocess, but I could not manage to launch the three threads that read and save in a variable the incoming data, then accessing when I want from an external loop to these data.</p>