()
| 28 | |
| 29 | |
| 30 | def 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 | |
| 44 | first_func() |