title: Python share values
body: <p>In my project I have multiple flags like this:</p>
  
  <pre><code>file_a = False
  file_b = False
  file_c = False
  </code></pre>
  
  <p>I'm trying to run two processes: one (call it A from now) handles incoming messages on message queue, second (call it B from now) handles some data processing. B operates on boolean flags, and A sets its values:</p>
  
  <pre><code>def a():
      while True:
          ...
          ...
          file_a = True
          ...
  
  def b():
      while True:
          ...
          if file_a:
              process(file_a)
              ...
  
  a_proc = Process(target=a)
  b_proc = Process(target=b)
  a_proc.start()
  b.proc.start()
  </code></pre>
  
  <p>But, the values don't seem to change. I read that I should use threading, and it seems to work, but my guideline is to use multiprocessing instead of threads.</p>