title: How to use concurrent.futures in Python
body: <p>Im struggling to get multithreading working in Python. I have i function which i want to execute on 5 threads based on a parameter. I also needs 2 parameters that are the same for every thread. This is what i have:</p>
  
  <pre><code>from concurrent.futures import ThreadPoolExecutor
  
  def do_something_parallel(sameValue1, sameValue2, differentValue):
      print(str(sameValue1))        #same everytime
      print(str(sameValue2))        #same everytime
      print(str(differentValue))    #different
  
  main(): 
  
      differentValues = ["1000ms", "100ms", "10ms", "20ms", "50ms"]
  
      with ThreadPoolExecutor(max_workers=5) as executor:
          futures = [executor.submit(do_something_parallel, sameValue1, sameValue2, differentValue) for differentValue in differentValues]
  </code></pre>
  
  <p>But i don't know what to do next</p>