MCPcopy Create free account
hub / github.com/MorvanZhou/tutorials / main

Function main

threadingTUT/thread3_join.py:18–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16 print('T2 finish\n')
17
18def main():
19 added_thread = threading.Thread(target=thread_job, name='T1')
20 thread2 = threading.Thread(target=T2_job, name='T2')
21 added_thread.start()
22 thread2.start()
23 thread2.join()
24 added_thread.join()
25
26 print('all done\n')
27
28if __name__ == '__main__':
29 main()

Callers 1

thread3_join.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected