MCPcopy Create free account
hub / github.com/bloomberg/pystack / third_func

Function third_func

tests/integration/multiple_thread_program_gil.py:30–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28
29
30def third_func():
31 collection = list(range(10000))
32 threads = [threading.Thread(target=thread_func_1) for _ in range(3)]
33 for thread in threads:
34 thread.start()
35 while threads_active != 3:
36 time.sleep(0.1)
37 fifo = sys.argv[1]
38 with open(sys.argv[1], "w") as fifo:
39 fifo.write("ready")
40 while True:
41 sorted(collection, reverse=True)
42
43
44first_func()

Callers 1

second_funcFunction · 0.70

Calls 1

ThreadMethod · 0.80

Tested by

no test coverage detected