how to use isAlive() and Join( ):
As mentioned, often you will want the main thread to finish last.Two ways exist to determine whether a thread has finished.
Using isAlive( ) and join( )
As mentioned, often you will want the main thread to finish last.Two ways exist to determine whether a thread has finished.
- isAlive()
- join()