()
| 23 | os._exit(1) |
| 24 | |
| 25 | def main(): |
| 26 | for j in range(NLOOPS): |
| 27 | threads = [] |
| 28 | for i in range(NTHREADS): |
| 29 | threads.append(threading.Thread(target=t2 if i % 1 else t1)) |
| 30 | for thread in threads: |
| 31 | thread.start() |
| 32 | for thread in threads: |
| 33 | thread.join() |
| 34 | sys.modules.pop('concurrent.futures', None) |
| 35 | sys.modules.pop('concurrent.futures.thread', None) |
| 36 | |
| 37 | if __name__ == "__main__": |
| 38 | main() |
no test coverage detected
searching dependent graphs…