title: Python Handling large number of Threads?
body: <pre><code># data is a list  
  
  Threading_list=[]
  
  class myfunction(threading.Thread):
  
      def __init__(self,val):
          .......
      .......
  
       def run(self):
          .......
          ....... 
  
  for i in range(100000):
  
      t=myfunction(data[i]) # need to execute this function on every datapoint 
      t.start()
      Threading_list.append(t)
  
  for t in Threading_list:
      t.join()
  </code></pre>
  
  <p>This will create around 100000 threads, but i am allowed to create a maximum of 32 threads ? 
  What modifications can be done in this code ? </p>