python thread not joining

Solutions on MaxInterview for python thread not joining by the best coders in the world

showing results for - "python thread not joining"
Jacopo
21 Feb 2018
1without join:
2+---+---+------------------                     main-thread
3    |   |
4    |   +...........                            child-thread(short)
5    +..................................         child-thread(long)
6
7with join
8+---+---+------------------***********+###      main-thread
9    |   |                             |
10    |   +...........join()            |         child-thread(short)
11    +......................join()......         child-thread(long)
12
13with join and daemon thread
14+-+--+---+------------------***********+###     parent-thread
15  |  |   |                             |
16  |  |   +...........join()            |        child-thread(short)
17  |  +......................join()......        child-thread(long)
18  +,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,     child-thread(long + daemonized)
19
20'-' main-thread/parent-thread/main-program execution
21'.' child-thread execution
22'#' optional parent-thread execution after join()-blocked parent-thread could 
23    continue
24'*' main-thread 'sleeping' in join-method, waiting for child-thread to finish
25',' daemonized thread - 'ignores' lifetime of other threads;
26    terminates when main-programs exits; is normally meant for 
27    join-independent tasks