def setThreads(n): Attacker.__Threads=n Attacker.__Semaphore_Threads=threading.BoundedSemaphore(value=Attacker.__Threads)