title: Multiprocessing share array
body: <p>How i can share an array as in the code below with an array and not a single value (in this example there is a counter as you can see)?</p>
  
  <p>How i can append and remove elements from the array?</p>
  
  <pre><code>class mp_counter(object):
      def __init__(self, initval=0):
          self.val = multiprocessing.Value('i', initval)
          self.lock = multiprocessing.Lock()
  
      def increment(self):
          with self.lock:
              self.val.value += 1
  
      def decrement(self):
          with self.lock:
              self.val.value -= 1
  
      def value(self):
          with self.lock:
              return self.val.value
  
  counter = mp_counter(0)
  proc = threading.Thread(target=start_processes,kwargs={"counter":counter})
  proc.daemon = True
  proc.start()
  </code></pre>
  
  <p>Thank you in advance</p>