title: How to use multiple threads to execute the same code and speed up it?
body: <p>I'm facing some performance issues to execute a fuzzy match based on Leveinshtein distance algorithm.</p>
  
  <p>I'm comparing two lists, a small one with 1k lines and a second one with 10k lines.</p>
  
  <p>I have splitted the bigger list in 10 files of 1000 lines to check speed performance, but I checked that Python is using only 1 thread.</p>
  
  <p>I have googled for many articles and people says how to execute TWO different functions in paralel.</p>
  
  <p>I would like to know how to execute the SAME code in multiple threads.</p>
  
  <p>For example: it's taking 1 second to compare 1 word in a 1000 lines. I would like to split this time in 4 threads.</p>
  
  <p>Is it possible?</p>
  
  <p>Sorry for the long text and thanks a lot for your help!</p>