def addWorker(self,num = 1):
        """ Add workers.
            num = number of workers to create/add.
        """
        for x in xrange(num):
            self.countLock.acquire()
            self.workers += 1
            self.allKilled.clear()
            self.countLock.release()        
            t = threading.Thread(target = self.__workerThread)
            t.setDaemon(True)
            t.start()
 Add workers.
            num = number of workers to create/add.
        
recipes/Python/576910_Thread_pool_grows_on_demand/recipe-576910.py