Searched refs:nthreads (Results 1 – 3 of 3) sorted by relevance
196 def run_throughput_test(func, args, nthreads): argument197 assert nthreads >= 1206 if nthreads == 1:230 for i in range(nthreads):238 while len(ready) < nthreads:243 start_cond.notify(nthreads)254 nthreads = 1256 while nthreads <= max_threads:257 results = run_throughput_test(func, args, nthreads)261 print("threads=%d: %d" % (nthreads, speed), end="")[all …]
18 static int nthreads; /* protected by count_lock */ variable158 nthreads++; in PyThread_start_new_thread()182 nthreads--; in PyThread_exit_thread()190 if (nthreads < 0) { in PyThread_exit_thread()196 dprintf(("waiting for other threads (%d)\n", nthreads)); in PyThread_exit_thread()
302 nthreads = 10307 threads = [threading.Thread(target=comp) for i in range(nthreads)]