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