title: A programming strategy to bypass the os thread limit?
body: <p>The scenario: We have a python script that checks thousands of proxys simultaneously.
  The program uses threads, 1 per proxy, to speed the process. When it reaches the 1007 thread, the script crashes because of the thread limit.
  <br>My solution is: A global variable that gets incremented when a thread spawns and decrements when a thread finishes. The function which spawns the threads monitors the variable so that the limit is not reached.
  <br>What will your solution be, friends?</p>
  
  <p>Thanks for the answers.</p>